e2cb87e06303476110a741f14c15f87b73d42592
[oota-llvm.git] / test / MC / Sparc / sparcv9-instructions.s
1 ! RUN: not llvm-mc %s -arch=sparc   -show-encoding 2>&1 | FileCheck %s --check-prefix=V8
2 ! RUN: llvm-mc %s -arch=sparcv9 -show-encoding | FileCheck %s --check-prefix=V9
3
4         ! V8:      error: invalid instruction mnemonic
5         ! V8-NEXT: addc %g2, %g1, %g3
6         ! V9:      addx %g2, %g1, %g3              ! encoding: [0x86,0x40,0x80,0x01]
7         addc %g2, %g1, %g3
8
9         ! V8:      error: invalid instruction mnemonic
10         ! V8-NEXT: addccc %g1, %g2, %g3
11         ! V9:      addxcc %g1, %g2, %g3            ! encoding: [0x86,0xc0,0x40,0x02]
12         addccc %g1, %g2, %g3
13
14         ! V8:      error: invalid instruction mnemonic
15         ! V8-NEXT: subc %g2, %g1, %g3
16         ! V9:      subx %g2, %g1, %g3          ! encoding: [0x86,0x60,0x80,0x01]
17         subc %g2, %g1, %g3
18
19         ! V8:      error: invalid instruction mnemonic
20         ! V8-NEXT: subccc %g1, %g2, %g3
21         ! V9:      subxcc %g1, %g2, %g3         ! encoding: [0x86,0xe0,0x40,0x02]
22         subccc %g1, %g2, %g3
23
24         ! V8:      error: instruction requires a CPU feature not currently enabled
25         ! V8-NEXT: popc %g1, %g2
26         ! V9:      popc %g1, %g2                ! encoding: [0x85,0x70,0x00,0x01]
27         popc %g1, %g2
28