summaryrefslogtreecommitdiffstats
path: root/llvm/test/CodeGen/X86
diff options
context:
space:
mode:
authorDavid Majnemer <david.majnemer@gmail.com>2016-06-28 16:04:46 +0000
committerDavid Majnemer <david.majnemer@gmail.com>2016-06-28 16:04:46 +0000
commit1c7d532cde3117a21ade6c5501e6bcf87d7555eb (patch)
tree5bff15b270436349446e002cf335127911ac1051 /llvm/test/CodeGen/X86
parent5ac8f5c379f6b56d64a11e0c469356ceb3443b4d (diff)
downloadbcm5719-llvm-1c7d532cde3117a21ade6c5501e6bcf87d7555eb.tar.gz
bcm5719-llvm-1c7d532cde3117a21ade6c5501e6bcf87d7555eb.zip
[X86] Make WRPKRU/RDPKRU pass -verify-machineinstrs
The original implementation attempted to zero registers using XOR %foo, %foo. This is problematic because it constitutes a read-modify-write of a register which might not be defined. Instead, use MOV32r0 to avoid these problems; expandPostRAPseudo does the right thing here. llvm-svn: 274024
Diffstat (limited to 'llvm/test/CodeGen/X86')
-rw-r--r--llvm/test/CodeGen/X86/pku.ll2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/test/CodeGen/X86/pku.ll b/llvm/test/CodeGen/X86/pku.ll
index 8568cf43abc..79b8c474ade 100644
--- a/llvm/test/CodeGen/X86/pku.ll
+++ b/llvm/test/CodeGen/X86/pku.ll
@@ -1,4 +1,4 @@
-; RUN: llc < %s -mtriple=x86_64-apple-darwin -mcpu=knl --show-mc-encoding| FileCheck %s
+; RUN: llc < %s -mtriple=x86_64-apple-darwin -mcpu=knl --show-mc-encoding -verify-machineinstrs | FileCheck %s
declare i32 @llvm.x86.rdpkru()
declare void @llvm.x86.wrpkru(i32)
OpenPOWER on IntegriCloud