diff options
Diffstat (limited to 'llvm/test/MC')
-rw-r--r-- | llvm/test/MC/AArch64/error-location.s | 3 | ||||
-rw-r--r-- | llvm/test/MC/ARM/error-location.s | 3 | ||||
-rw-r--r-- | llvm/test/MC/ELF/undefined-directional.s | 9 | ||||
-rw-r--r-- | llvm/test/MC/MachO/undefined-directional.s | 9 |
4 files changed, 18 insertions, 6 deletions
diff --git a/llvm/test/MC/AArch64/error-location.s b/llvm/test/MC/AArch64/error-location.s index a30f7706de7..6bb75f8cb5f 100644 --- a/llvm/test/MC/AArch64/error-location.s +++ b/llvm/test/MC/AArch64/error-location.s @@ -41,9 +41,6 @@ // CHECK: <unknown>:0: error: Common symbol 'common' cannot be used in assignment expr .set v3, common -// CHECK: <unknown>:0: error: Undefined temporary symbol - .word 5f - // CHECK: <unknown>:0: error: symbol 'undef' could not be evaluated in a subtraction expression .set v2, a-undef diff --git a/llvm/test/MC/ARM/error-location.s b/llvm/test/MC/ARM/error-location.s index 2f70f294b57..58ec585a928 100644 --- a/llvm/test/MC/ARM/error-location.s +++ b/llvm/test/MC/ARM/error-location.s @@ -23,9 +23,6 @@ @ CHECK: <unknown>:0: error: Common symbol 'common' cannot be used in assignment expr .set v3, common -@ CHECK: <unknown>:0: error: Undefined temporary symbol - .word 5f - @ CHECK: <unknown>:0: error: symbol 'undef' could not be evaluated in a subtraction expression .set v2, a-undef diff --git a/llvm/test/MC/ELF/undefined-directional.s b/llvm/test/MC/ELF/undefined-directional.s new file mode 100644 index 00000000000..74449d4e4f6 --- /dev/null +++ b/llvm/test/MC/ELF/undefined-directional.s @@ -0,0 +1,9 @@ +// RUN: not llvm-mc -triple x86_64-linux-gnu -filetype=obj -o /dev/null %s 2>&1 | FileCheck %s + +// CHECK: [[@LINE+1]]:{{[0-9]+}}: error: directional label undefined + jmp 1b +// CHECK: [[@LINE+1]]:{{[0-9]+}}: error: directional label undefined + jmp 1f +// CHECK: [[@LINE+1]]:{{[0-9]+}}: error: directional label undefined + jmp 2f + diff --git a/llvm/test/MC/MachO/undefined-directional.s b/llvm/test/MC/MachO/undefined-directional.s new file mode 100644 index 00000000000..8d75228f835 --- /dev/null +++ b/llvm/test/MC/MachO/undefined-directional.s @@ -0,0 +1,9 @@ +// RUN: not llvm-mc -triple x86_64-apple-macosx -filetype=obj -o /dev/null %s 2>&1 | FileCheck %s + +// CHECK: [[@LINE+1]]:{{[0-9]+}}: error: directional label undefined + jmp 1b +// CHECK: [[@LINE+1]]:{{[0-9]+}}: error: directional label undefined + jmp 1f +// CHECK: [[@LINE+1]]:{{[0-9]+}}: error: directional label undefined + jmp 2f + |