summaryrefslogtreecommitdiffstats
path: root/llvm/test/CodeGen
diff options
context:
space:
mode:
authorFrancis Visoiu Mistrih <francisvm@yahoo.com>2018-03-13 19:53:16 +0000
committerFrancis Visoiu Mistrih <francisvm@yahoo.com>2018-03-13 19:53:16 +0000
commit3abf05739f032fd03ed30d665aa5ecb7cb2c44f9 (patch)
tree8af919a4eb7a0a2abecb3a1cf92ab7675ff2adc3 /llvm/test/CodeGen
parent27c1afbb0b4e08f045126d04f1b341418a873321 (diff)
downloadbcm5719-llvm-3abf05739f032fd03ed30d665aa5ecb7cb2c44f9.tar.gz
bcm5719-llvm-3abf05739f032fd03ed30d665aa5ecb7cb2c44f9.zip
[MIR] Allow frame-setup and frame-destroy on the same instruction
Nothing prevents us from having both frame-setup and frame-destroy on the same instruction. When merging: * frame-setup OPCODE1 * frame-destroy OPCODE2 into * frame-setup frame-destroy OPCODE3 we want to be able to print and parse both flags. llvm-svn: 327442
Diffstat (limited to 'llvm/test/CodeGen')
-rw-r--r--llvm/test/CodeGen/MIR/X86/frame-setup-instruction-flag.mir4
1 files changed, 4 insertions, 0 deletions
diff --git a/llvm/test/CodeGen/MIR/X86/frame-setup-instruction-flag.mir b/llvm/test/CodeGen/MIR/X86/frame-setup-instruction-flag.mir
index 98fc57da38d..2e6d48c4647 100644
--- a/llvm/test/CodeGen/MIR/X86/frame-setup-instruction-flag.mir
+++ b/llvm/test/CodeGen/MIR/X86/frame-setup-instruction-flag.mir
@@ -32,5 +32,9 @@ body: |
CALL64pcrel32 @compute, csr_64, implicit $rsp, implicit $edi, implicit-def $rsp, implicit-def $eax
; CHECK: $rdx = frame-destroy POP64r
$rdx = frame-destroy POP64r implicit-def $rsp, implicit $rsp
+ ; CHECK: $rdx = frame-setup frame-destroy POP64r
+ $rdx = frame-setup frame-destroy POP64r implicit-def $rsp, implicit $rsp
+ ; CHECK: $rdx = frame-setup frame-destroy POP64r
+ $rdx = frame-destroy frame-setup POP64r implicit-def $rsp, implicit $rsp
RETQ $eax
...
OpenPOWER on IntegriCloud