mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-02-01 05:01:59 +01:00
[llvm-exegesis] Fix 44b9942898c7.
Summary: Add missing stack release instructions in loadImplicitRegAndFinalize. Reviewers: pengfei, gchatelet Subscribers: tschuett, llvm-commits Tags: #llvm Differential Revision: https://reviews.llvm.org/D70903
This commit is contained in:
parent
2926999f1a
commit
e9195205b7
13
test/tools/llvm-exegesis/X86/latency-SQRTSSr.s
Normal file
13
test/tools/llvm-exegesis/X86/latency-SQRTSSr.s
Normal file
@ -0,0 +1,13 @@
|
||||
# RUN: llvm-exegesis -mode=latency -opcode-name=SQRTSSr -repetition-mode=loop | FileCheck %s
|
||||
|
||||
# Check that the setup code for MXCSR does not crash the snippet.
|
||||
|
||||
CHECK: ---
|
||||
CHECK-NEXT: mode: latency
|
||||
CHECK-NEXT: key:
|
||||
CHECK-NEXT: instructions:
|
||||
CHECK-NEXT: SQRTSSr
|
||||
CHECK-NEXT: config: ''
|
||||
CHECK-NEXT: register_initial_values:
|
||||
CHECK-NOT: crashed
|
||||
CHECK-LAST: ...
|
@ -513,6 +513,7 @@ ConstantInliner::loadImplicitRegAndFinalize(unsigned Opcode, unsigned Value) {
|
||||
.addReg(0) // IndexReg
|
||||
.addImm(0) // Disp
|
||||
.addReg(0)); // Segment
|
||||
add(releaseStackSpace(4));
|
||||
return std::move(Instructions);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user