summaryrefslogtreecommitdiff
path: root/test/MC
diff options
context:
space:
mode:
authorSaleem Abdulrasool <compnerd@compnerd.org>2014-02-23 15:53:41 +0000
committerSaleem Abdulrasool <compnerd@compnerd.org>2014-02-23 15:53:41 +0000
commit69f706d9e1707fe66259f3e95163c2bfa6c72883 (patch)
tree419367e8f790e28469b2cf53a020a5d447ff3b92 /test/MC
parent0922e5b6430a566ed9f6d814902065352126faa5 (diff)
downloadllvm-69f706d9e1707fe66259f3e95163c2bfa6c72883.tar.gz
llvm-69f706d9e1707fe66259f3e95163c2bfa6c72883.tar.bz2
llvm-69f706d9e1707fe66259f3e95163c2bfa6c72883.tar.xz
MCAsmParser: support .ifne
The .ifne directive assembles the following section of code if the argument expression is non-zero. Effectively, it is equivalent to if. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@201986 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/MC')
-rw-r--r--test/MC/AsmParser/conditional_asm.s9
1 files changed, 9 insertions, 0 deletions
diff --git a/test/MC/AsmParser/conditional_asm.s b/test/MC/AsmParser/conditional_asm.s
index f619ef9bb4..b9bee33c6a 100644
--- a/test/MC/AsmParser/conditional_asm.s
+++ b/test/MC/AsmParser/conditional_asm.s
@@ -10,3 +10,12 @@
.byte 0
.endif
.endif
+
+# CHECK: .byte 1
+# CHECK-NOT: .byte 0
+.ifne 32 - 32
+ .byte 0
+.else
+ .byte 1
+.endif
+