[PATCH] D70903: [llvm-exegesis] Fix 44b9942898c7.
Clement Courbet via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Dec 2 07:13:29 PST 2019
courbet updated this revision to Diff 231705.
courbet added a comment.
More comments.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D70903/new/
https://reviews.llvm.org/D70903
Files:
llvm/test/tools/llvm-exegesis/X86/latency-SQRTSSr.s
llvm/tools/llvm-exegesis/lib/X86/Target.cpp
Index: llvm/tools/llvm-exegesis/lib/X86/Target.cpp
===================================================================
--- llvm/tools/llvm-exegesis/lib/X86/Target.cpp
+++ llvm/tools/llvm-exegesis/lib/X86/Target.cpp
@@ -513,6 +513,7 @@
.addReg(0) // IndexReg
.addImm(0) // Disp
.addReg(0)); // Segment
+ add(releaseStackSpace(4));
return std::move(Instructions);
}
Index: llvm/test/tools/llvm-exegesis/X86/latency-SQRTSSr.s
===================================================================
--- /dev/null
+++ llvm/test/tools/llvm-exegesis/X86/latency-SQRTSSr.s
@@ -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: ...
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D70903.231705.patch
Type: text/x-patch
Size: 1017 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20191202/c5fb0d76/attachment.bin>
More information about the llvm-commits
mailing list