Add 'not' in front of a command that is expected to fail.
[oota-llvm.git] / test / MC / ELF / diff.s
index 9b662ecd178c7cc101f4e0d46a410d4176103430..543651066969257671e5ae93df112ac178b03813 100644 (file)
@@ -1,4 +1,4 @@
-// RUN: llvm-mc -filetype=obj -triple x86_64-pc-linux-gnu %s -o - | elf-dump  | FileCheck %s
+// RUN: llvm-mc -filetype=obj -triple x86_64-pc-linux-gnu %s -o - | llvm-readobj -r | FileCheck %s
 
         .global zed
 foo:
@@ -8,8 +8,4 @@ bar:
 zed:
         mov zed+(bar-foo), %eax
 
-// CHECK:       # Relocation 0x0
-// CHECK-NEXT:  (('r_offset', 0x5)
-// CHECK-NEXT:   ('r_sym', 0x6)
-// CHECK-NEXT:   ('r_type', 0xb)
-// CHECK-NEXT:   ('r_addend', 0x1)
+// CHECK:       0x5 R_X86_64_32S zed 0x1