diff options
author | Benjamin Kramer <benny.kra@googlemail.com> | 2012-05-12 11:18:51 +0000 |
---|---|---|
committer | Benjamin Kramer <benny.kra@googlemail.com> | 2012-05-12 11:18:51 +0000 |
commit | dec06ef43114ca0f7e5a616ca7437be6e98ea0b3 (patch) | |
tree | ebe42dbadcd2da110eac2bc6a7fe2d7e63d1a69e /test/MC/AsmParser/ifc.s | |
parent | a3dd0eb93c764905dac919851bca12517e7e8757 (diff) | |
download | external_llvm-dec06ef43114ca0f7e5a616ca7437be6e98ea0b3.zip external_llvm-dec06ef43114ca0f7e5a616ca7437be6e98ea0b3.tar.gz external_llvm-dec06ef43114ca0f7e5a616ca7437be6e98ea0b3.tar.bz2 |
AsmParser: Add support for .ifc and .ifnc directives.
Based on a patch from PaX Team.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@156706 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/MC/AsmParser/ifc.s')
-rw-r--r-- | test/MC/AsmParser/ifc.s | 65 |
1 files changed, 65 insertions, 0 deletions
diff --git a/test/MC/AsmParser/ifc.s b/test/MC/AsmParser/ifc.s new file mode 100644 index 0000000..20e55c0 --- /dev/null +++ b/test/MC/AsmParser/ifc.s @@ -0,0 +1,65 @@ +# RUN: llvm-mc -triple i386-unknown-unknown %s | FileCheck %s + +# CHECK-NOT: .byte 0 +# CHECK: .byte 1 +.ifc foo, foo + .byte 1 +.else + .byte 0 +.endif + +# CHECK-NOT: .byte 0 +# CHECK: .byte 1 +.ifc "foo space", "foo space" + .byte 1 +.else + .byte 0 +.endif + +# CHECK-NOT: .byte 0 +# CHECK: .byte 1 +.ifc foo space, foo space + .byte 1 +.else + .byte 0 +.endif + +# CHECK-NOT: .byte 0 +# CHECK: .byte 1 +.ifc unequal, unEqual + .byte 0 +.else + .byte 1 +.endif + +# CHECK-NOT: .byte 0 +# CHECK: .byte 1 +.ifnc foo, foo + .byte 0 +.else + .byte 1 +.endif + +# CHECK-NOT: .byte 0 +# CHECK: .byte 1 +.ifnc "foo space", "foo space" + .byte 0 +.else + .byte 1 +.endif + +# CHECK-NOT: .byte 0 +# CHECK: .byte 1 +.ifnc foo space, foo space + .byte 0 +.else + .byte 1 +.endif + +# CHECK-NOT: .byte 0 +# CHECK: .byte 1 +.ifnc unequal, unEqual + .byte 1 +.else + .byte 0 +.endif |