summaryrefslogtreecommitdiff
path: root/test/MC/Sparc
diff options
context:
space:
mode:
authorVenkatraman Govindaraju <venkatra@cs.wisc.edu>2014-03-01 17:51:00 +0000
committerVenkatraman Govindaraju <venkatra@cs.wisc.edu>2014-03-01 17:51:00 +0000
commite1f5cd3002456d8a7d091ca7e4b9a6d259745796 (patch)
treee66404adf5c8e3a4b4db2885dbf7ce7ff4cfffff /test/MC/Sparc
parent71e50f0afd94be865ce796728740daa5ca916849 (diff)
[Sparc] Add missing ALU instruction patterns.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@202597 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/MC/Sparc')
-rw-r--r--test/MC/Sparc/sparc-alu-instructions.s48
1 files changed, 48 insertions, 0 deletions
diff --git a/test/MC/Sparc/sparc-alu-instructions.s b/test/MC/Sparc/sparc-alu-instructions.s
index ef337b00329..afebf643bfa 100644
--- a/test/MC/Sparc/sparc-alu-instructions.s
+++ b/test/MC/Sparc/sparc-alu-instructions.s
@@ -78,3 +78,51 @@
! CHECK: restore ! encoding: [0x81,0xe8,0x00,0x00]
restore %g0, %g0, %g0
+
+ ! CHECK: addx %g2, %g1, %g3 ! encoding: [0x86,0x40,0x80,0x01]
+ addx %g2, %g1, %g3
+
+ ! CHECK: subx %g2, %g1, %g3 ! encoding: [0x86,0x60,0x80,0x01]
+ subx %g2, %g1, %g3
+
+ ! CHECK: umulcc %g2, %g1, %g3 ! encoding: [0x86,0xd0,0x80,0x01]
+ umulcc %g2, %g1, %g3
+
+ ! CHECK: smulcc %g2, %g1, %g3 ! encoding: [0x86,0xd8,0x80,0x01]
+ smulcc %g2, %g1, %g3
+
+ ! CHECK: udivcc %g2, %g1, %g3 ! encoding: [0x86,0xf0,0x80,0x01]
+ udivcc %g2, %g1, %g3
+
+ ! CHECK: sdivcc %g2, %g1, %g3 ! encoding: [0x86,0xf8,0x80,0x01]
+ sdivcc %g2, %g1, %g3
+
+ ! CHECK: andcc %g2, %g1, %g3 ! encoding: [0x86,0x88,0x80,0x01]
+ andcc %g2, %g1, %g3
+
+ ! CHECK: andncc %g2, %g1, %g3 ! encoding: [0x86,0xa8,0x80,0x01]
+ andncc %g2, %g1, %g3
+
+ ! CHECK: orcc %g2, %g1, %g3 ! encoding: [0x86,0x90,0x80,0x01]
+ orcc %g2, %g1, %g3
+
+ ! CHECK: orncc %g2, %g1, %g3 ! encoding: [0x86,0xb0,0x80,0x01]
+ orncc %g2, %g1, %g3
+
+ ! CHECK: xorcc %g2, %g1, %g3 ! encoding: [0x86,0x98,0x80,0x01]
+ xorcc %g2, %g1, %g3
+
+ ! CHECK: xnorcc %g2, %g1, %g3 ! encoding: [0x86,0xb8,0x80,0x01]
+ xnorcc %g2, %g1, %g3
+
+ ! CHECK: taddcc %g2, %g1, %g3 ! encoding: [0x87,0x00,0x80,0x01]
+ taddcc %g2, %g1, %g3
+
+ ! CHECK: tsubcc %g2, %g1, %g3 ! encoding: [0x87,0x08,0x80,0x01]
+ tsubcc %g2, %g1, %g3
+
+ ! CHECK: taddcctv %g2, %g1, %g3 ! encoding: [0x87,0x10,0x80,0x01]
+ taddcctv %g2, %g1, %g3
+
+ ! CHECK: tsubcctv %g2, %g1, %g3 ! encoding: [0x87,0x18,0x80,0x01]
+ tsubcctv %g2, %g1, %g3