diff options
| author | Matthias Braun <matze@braunis.de> | 2016-07-26 18:20:00 +0000 |
|---|---|---|
| committer | Matthias Braun <matze@braunis.de> | 2016-07-26 18:20:00 +0000 |
| commit | ee0679207b50d8a10ac21edd47a1713eb9c7e47d (patch) | |
| tree | 73b8626bd772c323d456858a6c6a15f397eda830 /llvm/test/CodeGen/MIR/X86 | |
| parent | a9c5a528469e99dd1f7bb29ed053b98dec45c99d (diff) | |
| download | bcm5719-llvm-ee0679207b50d8a10ac21edd47a1713eb9c7e47d.tar.gz bcm5719-llvm-ee0679207b50d8a10ac21edd47a1713eb9c7e47d.zip | |
MIRParser: Use shorter cfi identifiers
In an instruction like:
CFI_INSTRUCTION .cfi_def_cfa ...
we can drop the '.cfi_' prefix since that should be obvious by the
context:
CFI_INSTRUCTION def_cfa ...
While being a terser and cleaner syntax this also prepares to dropping
support for identifiers starting with a dot character so we can use it
for expressions.
Differential Revision: http://reviews.llvm.org/D22388
llvm-svn: 276785
Diffstat (limited to 'llvm/test/CodeGen/MIR/X86')
11 files changed, 28 insertions, 28 deletions
diff --git a/llvm/test/CodeGen/MIR/X86/cfi-def-cfa-offset.mir b/llvm/test/CodeGen/MIR/X86/cfi-def-cfa-offset.mir index ed26df684b0..2bdec446af0 100644 --- a/llvm/test/CodeGen/MIR/X86/cfi-def-cfa-offset.mir +++ b/llvm/test/CodeGen/MIR/X86/cfi-def-cfa-offset.mir @@ -1,5 +1,5 @@ # RUN: llc -march=x86-64 -run-pass none -o - %s | FileCheck %s -# This test ensures that the MIR parser parses the .cfi_def_cfa_offset operands +# This test ensures that the MIR parser parses the cfi offset operands # correctly. --- | @@ -21,8 +21,8 @@ stack: body: | bb.0.entry: %rsp = SUB64ri32 %rsp, 4040, implicit-def dead %eflags - ; CHECK: CFI_INSTRUCTION .cfi_def_cfa_offset 4048 - CFI_INSTRUCTION .cfi_def_cfa_offset 4048 + ; CHECK: CFI_INSTRUCTION def_cfa_offset 4048 + CFI_INSTRUCTION def_cfa_offset 4048 %rsp = ADD64ri32 %rsp, 4040, implicit-def dead %eflags RETQ ... diff --git a/llvm/test/CodeGen/MIR/X86/cfi-def-cfa-register.mir b/llvm/test/CodeGen/MIR/X86/cfi-def-cfa-register.mir index 9a57eb047b8..2afa8e3bf92 100644 --- a/llvm/test/CodeGen/MIR/X86/cfi-def-cfa-register.mir +++ b/llvm/test/CodeGen/MIR/X86/cfi-def-cfa-register.mir @@ -1,5 +1,5 @@ # RUN: llc -march=x86-64 -run-pass none -o - %s | FileCheck %s -# This test ensures that the MIR parser parses the .cfi_def_cfa_register +# This test ensures that the MIR parser parses the cfi def_cfa_register # operands correctly. --- | @@ -24,9 +24,9 @@ body: | liveins: %rbp PUSH64r killed %rbp, implicit-def %rsp, implicit %rsp - CFI_INSTRUCTION .cfi_def_cfa_offset 16 - CFI_INSTRUCTION .cfi_offset %rbp, -16 + CFI_INSTRUCTION def_cfa_offset 16 + CFI_INSTRUCTION offset %rbp, -16 %rbp = MOV64rr %rsp - ; CHECK: CFI_INSTRUCTION .cfi_def_cfa_register %rbp - CFI_INSTRUCTION .cfi_def_cfa_register %rbp + ; CHECK: CFI_INSTRUCTION def_cfa_register %rbp + CFI_INSTRUCTION def_cfa_register %rbp ... diff --git a/llvm/test/CodeGen/MIR/X86/cfi-offset.mir b/llvm/test/CodeGen/MIR/X86/cfi-offset.mir index 0a50fe1866f..4cb33073f80 100644 --- a/llvm/test/CodeGen/MIR/X86/cfi-offset.mir +++ b/llvm/test/CodeGen/MIR/X86/cfi-offset.mir @@ -1,5 +1,5 @@ # RUN: llc -march=x86-64 -run-pass none -o - %s | FileCheck %s -# This test ensures that the MIR parser parses the .cfi_offset operands +# This test ensures that the MIR parser parses the cfi offset operands # correctly. --- | @@ -31,9 +31,9 @@ body: | liveins: %ecx, %edi, %edx, %esi, %rbx PUSH64r killed %rbx, implicit-def %rsp, implicit %rsp - CFI_INSTRUCTION .cfi_def_cfa_offset 16 - ; CHECK: CFI_INSTRUCTION .cfi_offset %rbx, -16 - CFI_INSTRUCTION .cfi_offset %rbx, -16 + CFI_INSTRUCTION def_cfa_offset 16 + ; CHECK: CFI_INSTRUCTION offset %rbx, -16 + CFI_INSTRUCTION offset %rbx, -16 %ebx = COPY %edi, implicit-def %rbx %ebx = ADD32rr %ebx, killed %esi, implicit-def dead %eflags %ebx = ADD32rr %ebx, killed %edx, implicit-def dead %eflags diff --git a/llvm/test/CodeGen/MIR/X86/early-clobber-register-flag.mir b/llvm/test/CodeGen/MIR/X86/early-clobber-register-flag.mir index 0870fa062be..95b1057b5b5 100644 --- a/llvm/test/CodeGen/MIR/X86/early-clobber-register-flag.mir +++ b/llvm/test/CodeGen/MIR/X86/early-clobber-register-flag.mir @@ -33,7 +33,7 @@ body: | liveins: %edi, %esi frame-setup PUSH64r undef %rax, implicit-def %rsp, implicit %rsp - CFI_INSTRUCTION .cfi_def_cfa_offset 16 + CFI_INSTRUCTION def_cfa_offset 16 %ecx = COPY %edi %ecx = ADD32rr killed %ecx, killed %esi, implicit-def dead %eflags ; CHECK: INLINEASM $nop, 1, 12, implicit-def dead early-clobber %ax, 12, implicit-def dead early-clobber %di diff --git a/llvm/test/CodeGen/MIR/X86/expected-comma-after-cfi-register.mir b/llvm/test/CodeGen/MIR/X86/expected-comma-after-cfi-register.mir index 52ba166094f..eb0d16755c4 100644 --- a/llvm/test/CodeGen/MIR/X86/expected-comma-after-cfi-register.mir +++ b/llvm/test/CodeGen/MIR/X86/expected-comma-after-cfi-register.mir @@ -27,9 +27,9 @@ fixedStack: body: | bb.0.entry: PUSH64r killed %rbx, implicit-def %rsp, implicit %rsp - CFI_INSTRUCTION .cfi_def_cfa_offset 16 - ; CHECK: [[@LINE+1]]:38: expected ',' - CFI_INSTRUCTION .cfi_offset %rbx -16 + CFI_INSTRUCTION def_cfa_offset 16 + ; CHECK: [[@LINE+1]]:33: expected ',' + CFI_INSTRUCTION offset %rbx -16 %ebx = COPY %edi, implicit-def %rbx %ebx = ADD32rr %ebx, killed %esi, implicit-def dead %eflags %ebx = ADD32rr %ebx, killed %edx, implicit-def dead %eflags diff --git a/llvm/test/CodeGen/MIR/X86/expected-offset-after-cfi-operand.mir b/llvm/test/CodeGen/MIR/X86/expected-offset-after-cfi-operand.mir index e3c5ee9b9c8..fd7ad1bb9a4 100644 --- a/llvm/test/CodeGen/MIR/X86/expected-offset-after-cfi-operand.mir +++ b/llvm/test/CodeGen/MIR/X86/expected-offset-after-cfi-operand.mir @@ -19,8 +19,8 @@ stack: body: | bb.0.entry: %rsp = SUB64ri32 %rsp, 4040, implicit-def dead %eflags - ; CHECK: [[@LINE+1]]:41: expected a cfi offset - CFI_INSTRUCTION .cfi_def_cfa_offset _ + ; CHECK: [[@LINE+1]]:36: expected a cfi offset + CFI_INSTRUCTION def_cfa_offset _ %rsp = ADD64ri32 %rsp, 4040, implicit-def dead %eflags RETQ ... diff --git a/llvm/test/CodeGen/MIR/X86/expected-register-after-cfi-operand.mir b/llvm/test/CodeGen/MIR/X86/expected-register-after-cfi-operand.mir index eea79582146..eb53d629a85 100644 --- a/llvm/test/CodeGen/MIR/X86/expected-register-after-cfi-operand.mir +++ b/llvm/test/CodeGen/MIR/X86/expected-register-after-cfi-operand.mir @@ -27,9 +27,9 @@ fixedStack: body: | bb.0.entry: PUSH64r killed %rbx, implicit-def %rsp, implicit %rsp - CFI_INSTRUCTION .cfi_def_cfa_offset 16 - ; CHECK: [[@LINE+1]]:33: expected a cfi register - CFI_INSTRUCTION .cfi_offset %0, -16 + CFI_INSTRUCTION def_cfa_offset 16 + ; CHECK: [[@LINE+1]]:28: expected a cfi register + CFI_INSTRUCTION offset %0, -16 %ebx = COPY %edi, implicit-def %rbx %ebx = ADD32rr %ebx, killed %esi, implicit-def dead %eflags %ebx = ADD32rr %ebx, killed %edx, implicit-def dead %eflags diff --git a/llvm/test/CodeGen/MIR/X86/fixed-stack-memory-operands.mir b/llvm/test/CodeGen/MIR/X86/fixed-stack-memory-operands.mir index f7a48d2eec0..8ae76753984 100644 --- a/llvm/test/CodeGen/MIR/X86/fixed-stack-memory-operands.mir +++ b/llvm/test/CodeGen/MIR/X86/fixed-stack-memory-operands.mir @@ -29,7 +29,7 @@ stack: body: | bb.0.entry: frame-setup PUSH32r undef %eax, implicit-def %esp, implicit %esp - CFI_INSTRUCTION .cfi_def_cfa_offset 8 + CFI_INSTRUCTION def_cfa_offset 8 ; CHECK: name: test ; CHECK: %eax = MOV32rm %esp, 1, _, 8, _ :: (load 4 from %fixed-stack.0, align 16) %eax = MOV32rm %esp, 1, _, 8, _ :: (load 4 from %fixed-stack.0, align 16) diff --git a/llvm/test/CodeGen/MIR/X86/large-cfi-offset-number-error.mir b/llvm/test/CodeGen/MIR/X86/large-cfi-offset-number-error.mir index 3339115c8bd..988a3432e79 100644 --- a/llvm/test/CodeGen/MIR/X86/large-cfi-offset-number-error.mir +++ b/llvm/test/CodeGen/MIR/X86/large-cfi-offset-number-error.mir @@ -19,8 +19,8 @@ stack: body: | bb.0.entry: %rsp = SUB64ri32 %rsp, 4040, implicit-def dead %eflags - ; CHECK: [[@LINE+1]]:41: expected a 32 bit integer (the cfi offset is too large) - CFI_INSTRUCTION .cfi_def_cfa_offset 123456789123456 + ; CHECK: [[@LINE+1]]:36: expected a 32 bit integer (the cfi offset is too large) + CFI_INSTRUCTION def_cfa_offset 123456789123456 %rsp = ADD64ri32 %rsp, 4040, implicit-def dead %eflags RETQ ... diff --git a/llvm/test/CodeGen/MIR/X86/liveout-register-mask.mir b/llvm/test/CodeGen/MIR/X86/liveout-register-mask.mir index c2a5a34a85c..3e38348961f 100644 --- a/llvm/test/CodeGen/MIR/X86/liveout-register-mask.mir +++ b/llvm/test/CodeGen/MIR/X86/liveout-register-mask.mir @@ -31,10 +31,10 @@ body: | liveins: %rdi, %rsi, %rbp frame-setup PUSH64r killed %rbp, implicit-def %rsp, implicit %rsp - CFI_INSTRUCTION .cfi_def_cfa_offset 16 - CFI_INSTRUCTION .cfi_offset %rbp, -16 + CFI_INSTRUCTION def_cfa_offset 16 + CFI_INSTRUCTION offset %rbp, -16 %rbp = frame-setup MOV64rr %rsp - CFI_INSTRUCTION .cfi_def_cfa_register %rbp + CFI_INSTRUCTION def_cfa_register %rbp ; CHECK: PATCHPOINT 5, 5, 0, 2, 0, %rdi, %rsi, csr_64, liveout(%esp, %rsp, %sp, %spl), PATCHPOINT 5, 5, 0, 2, 0, %rdi, %rsi, csr_64, liveout(%esp, %rsp, %sp, %spl), implicit-def dead early-clobber %r11, implicit-def %rsp, implicit-def dead %rax %rbp = POP64r implicit-def %rsp, implicit %rsp diff --git a/llvm/test/CodeGen/MIR/X86/memory-operands.mir b/llvm/test/CodeGen/MIR/X86/memory-operands.mir index a25538d9b1f..5ac932e9034 100644 --- a/llvm/test/CodeGen/MIR/X86/memory-operands.mir +++ b/llvm/test/CodeGen/MIR/X86/memory-operands.mir @@ -354,7 +354,7 @@ fixedStack: body: | bb.0.entry: %rsp = frame-setup SUB64ri8 %rsp, 24, implicit-def dead %eflags - CFI_INSTRUCTION .cfi_def_cfa_offset 32 + CFI_INSTRUCTION def_cfa_offset 32 LD_F80m %rsp, 1, _, 32, _, implicit-def dead %fpsw ; CHECK: name: stack_psv ; CHECK: ST_FP80m %rsp, 1, _, 0, _, implicit-def dead %fpsw :: (store 10 into stack, align 16) |

