diff options
author | Daniel Dunbar <daniel@zuster.org> | 2009-06-29 20:37:27 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2009-06-29 20:37:27 +0000 |
commit | c3b8a4ba738aa60ac5fd4c2b0dffb82843ee0d45 (patch) | |
tree | 6d5ed8824683ef43a3491907d099c275ef8e0044 /test/MC | |
parent | d86b11823d3a9d12acaa5febcc929fde1dd4583e (diff) | |
download | external_llvm-c3b8a4ba738aa60ac5fd4c2b0dffb82843ee0d45.zip external_llvm-c3b8a4ba738aa60ac5fd4c2b0dffb82843ee0d45.tar.gz external_llvm-c3b8a4ba738aa60ac5fd4c2b0dffb82843ee0d45.tar.bz2 |
MC: Improve expression parsing and implement evaluation of absolute expressions.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74448 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/MC')
-rw-r--r-- | test/MC/AsmParser/exprs.s | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/test/MC/AsmParser/exprs.s b/test/MC/AsmParser/exprs.s new file mode 100644 index 0000000..472b4cf --- /dev/null +++ b/test/MC/AsmParser/exprs.s @@ -0,0 +1,39 @@ +# FIXME: For now this test just checks that llvm-mc works. Once we have .macro, +# .if, and .abort we can write a better test (without resorting to miles of +# greps). + +# RUN: llvm-mc %s > %t + + .byte !1 + 2 + .byte !0 + .byte ~0 + .byte -1 + .byte +1 + .byte 1 + 2 + .byte 1 & 3 + .byte 4 / 2 + .byte 4 / -2 + .byte 1 == 1 + .byte 1 == 0 + .byte 1 > 0 + .byte 1 >= 1 + .byte 1 < 2 + .byte 1 <= 1 + .byte 4 % 3 + .byte 2 * 2 + .byte 2 != 2 + .byte 2 <> 2 + .byte 1 | 2 + .byte 1 << 1 + .byte 2 >> 1 + .byte ~0 >> 1 + .byte 3 - 2 + .byte 1 ^ 3 + .byte 1 && 2 + .byte 3 && 0 + .byte 1 || 2 + .byte 0 || 0 + + .set c, 10 + .byte c + 1 +
\ No newline at end of file |