diff options
Diffstat (limited to 'test/MC/AsmParser')
-rw-r--r-- | test/MC/AsmParser/ifeqs-diagnostics.s | 17 | ||||
-rw-r--r-- | test/MC/AsmParser/ifnes.s | 22 | ||||
-rw-r--r-- | test/MC/AsmParser/rename.s | 4 |
3 files changed, 41 insertions, 2 deletions
diff --git a/test/MC/AsmParser/ifeqs-diagnostics.s b/test/MC/AsmParser/ifeqs-diagnostics.s index 1e5e8c3..dcc43ff 100644 --- a/test/MC/AsmParser/ifeqs-diagnostics.s +++ b/test/MC/AsmParser/ifeqs-diagnostics.s @@ -20,3 +20,20 @@ // CHECK-NOT: error: unmatched .ifs or .elses +.ifnes + +// CHECK: error: expected string parameter for '.ifnes' directive +// CHECK: .ifnes +// CHECK: ^ + +.ifnes "string1" + +// CHECK: error: expected comma after first string for '.ifnes' directive +// CHECK: .ifnes "string1" +// CHECK: ^ + +.ifnes "string1", + +// CHECK: error: expected string parameter for '.ifnes' directive +// CHECK: .ifnes "string1", +// CHECK: ^ diff --git a/test/MC/AsmParser/ifnes.s b/test/MC/AsmParser/ifnes.s new file mode 100644 index 0000000..7a3cbe0 --- /dev/null +++ b/test/MC/AsmParser/ifnes.s @@ -0,0 +1,22 @@ +# RUN: llvm-mc -triple i386-unknown-unknown %s | FileCheck %s + +# CHECK-NOT: .byte 0 +# CHECK: .byte 1 +.ifnes "foo space", "foo space" + .byte 0 +.else + .byte 1 +.endif + +# CHECK-NOT: .byte 0 +# CHECK: .byte 1 +.ifnes "unequal", "unEqual" + .byte 1 +.else + .byte 0 +.endif + +# CHECK-NOT: .byte 0 +# CHECK: .byte 1 +.ifnes "equal", "equal" ; .byte 0 ; .else ; .byte 1 ; .endif + diff --git a/test/MC/AsmParser/rename.s b/test/MC/AsmParser/rename.s index 934cee8..c794d8b 100644 --- a/test/MC/AsmParser/rename.s +++ b/test/MC/AsmParser/rename.s @@ -10,5 +10,5 @@ // CHECK: .size bar, .Ltmp0-bar // CHECK: .Ltmp01 // CHECK: .size foo, .Ltmp01-foo -// CHECK: .Ltmp02 -// CHECK: .size qux, .Ltmp02-qux +// CHECK: .Ltmp00 +// CHECK: .size qux, .Ltmp00-qux |