1! RUN: not llvm-mc %s -triple=sparc -show-encoding 2>&1 | FileCheck %s --check-prefix=V8 2! RUN: not llvm-mc %s -triple=sparc -mattr=+hasleoncasa -show-encoding 2>&1 | FileCheck %s --check-prefix=LEON 3! RUN: llvm-mc %s -triple=sparcv9 -show-encoding | FileCheck %s --check-prefix=V9 4 5! V8: error: instruction requires a CPU feature not currently enabled 6! V9: cas [%i0], %l6, %o2 ! encoding: [0xd5,0xe6,0x10,0x16] 7! LEON: error: instruction requires a CPU feature not currently enabled 8cas [%i0], %l6, %o2 9 10! V8: error: instruction requires a CPU feature not currently enabled 11! V9: casl [%i0], %l6, %o2 ! encoding: [0xd5,0xe6,0x11,0x16] 12! LEON: error: instruction requires a CPU feature not currently enabled 13casl [%i0], %l6, %o2 14 15! V8: error: instruction requires a CPU feature not currently enabled 16! V9: casx [%i0], %l6, %o2 ! encoding: [0xd5,0xf6,0x10,0x16] 17! LEON: error: instruction requires a CPU feature not currently enabled 18casx [%i0], %l6, %o2 19 20! V8: error: instruction requires a CPU feature not currently enabled 21! V9: casxl [%i0], %l6, %o2 ! encoding: [0xd5,0xf6,0x11,0x16] 22! LEON: error: instruction requires a CPU feature not currently enabled 23casxl [%i0], %l6, %o2 24 25! V8: error: instruction requires a CPU feature not currently enabled 26! V9: casxa [%i0] %asi, %l6, %o2 ! encoding: [0xd5,0xf6,0x20,0x16] 27! LEON: error: instruction requires a CPU feature not currently enabled 28casxa [%i0] %asi, %l6, %o2 29 30! V8: error: instruction requires a CPU feature not currently enabled 31! V9: casx [%i0], %l6, %o2 ! encoding: [0xd5,0xf6,0x10,0x16] 32! LEON: error: instruction requires a CPU feature not currently enabled 33casxa [%i0] 0x80, %l6, %o2 34 35! V8: error: instruction requires a CPU feature not currently enabled 36! V9: casx [%i0], %l6, %o2 ! encoding: [0xd5,0xf6,0x10,0x16] 37! LEON: error: instruction requires a CPU feature not currently enabled 38casxa [%i0] (0x40+0x40), %l6, %o2 39 40! V8: error: instruction requires a CPU feature not currently enabled 41! V9: casa [%i0] %asi, %l6, %o2 ! encoding: [0xd5,0xe6,0x20,0x16] 42! LEON: error: malformed ASI tag, must be a constant integer expression 43casa [%i0] %asi, %l6, %o2 44 45! V8: error: instruction requires a CPU feature not currently enabled 46! V9: cas [%i0], %l6, %o2 ! encoding: [0xd5,0xe6,0x10,0x16] 47! LEON: casa [%i0] 128, %l6, %o2 ! encoding: [0xd5,0xe6,0x10,0x16] 48casa [%i0] 0x80, %l6, %o2 49 50! V8: error: instruction requires a CPU feature not currently enabled 51! V9: cas [%i0], %l6, %o2 ! encoding: [0xd5,0xe6,0x10,0x16] 52! LEON: casa [%i0] 128, %l6, %o2 ! encoding: [0xd5,0xe6,0x10,0x16] 53casa [%i0] (0x40+0x40), %l6, %o2 54