diff options
Diffstat (limited to 'llvm/test')
-rw-r--r-- | llvm/test/MC/Sparc/sparc-assembly-exprs.s | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/llvm/test/MC/Sparc/sparc-assembly-exprs.s b/llvm/test/MC/Sparc/sparc-assembly-exprs.s new file mode 100644 index 00000000000..7fdc5a50345 --- /dev/null +++ b/llvm/test/MC/Sparc/sparc-assembly-exprs.s @@ -0,0 +1,6 @@ +! RUN: llvm-mc %s -arch=sparc -show-encoding | FileCheck %s + + ! CHECK: mov 1033, %o1 ! encoding: [0x92,0x10,0x24,0x09] + mov (0x400|9), %o1 + ! CHECK: mov 60, %o2 ! encoding: [0x94,0x10,0x20,0x3c] + mov (12+3<<2), %o2 |