summaryrefslogtreecommitdiff
path: root/test/CodeGen/X86/subreg-to-reg-1.ll
diff options
context:
space:
mode:
authorEvan Cheng <evan.cheng@apple.com>2009-04-14 00:32:25 +0000
committerEvan Cheng <evan.cheng@apple.com>2009-04-14 00:32:25 +0000
commit87d696a4d2f0b43a0e927bffb13ceb4c67cc0f3b (patch)
tree8500a452736fb91e626e8d3ebe3aa49021351a02 /test/CodeGen/X86/subreg-to-reg-1.ll
parent4cbb173d6cbf0196f3d2c817186fe6b599e68cf4 (diff)
downloadllvm-87d696a4d2f0b43a0e927bffb13ceb4c67cc0f3b.tar.gz
llvm-87d696a4d2f0b43a0e927bffb13ceb4c67cc0f3b.tar.bz2
llvm-87d696a4d2f0b43a0e927bffb13ceb4c67cc0f3b.tar.xz
Fix PR3934 part 2. findOnlyInterestingUse() was not setting IsCopy and IsDstPhys which are returned by value and used by callee. This happened to work on the earlier test cases because of a logic error in the caller side.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@69006 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/X86/subreg-to-reg-1.ll')
-rw-r--r--test/CodeGen/X86/subreg-to-reg-1.ll2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/CodeGen/X86/subreg-to-reg-1.ll b/test/CodeGen/X86/subreg-to-reg-1.ll
index cf9f2d8142..aa26f06aba 100644
--- a/test/CodeGen/X86/subreg-to-reg-1.ll
+++ b/test/CodeGen/X86/subreg-to-reg-1.ll
@@ -5,7 +5,7 @@
; though this isn't necessary; The point of this test is to make sure
; a 32-bit add is used.
-define i64 @foo(i64 %a) {
+define i64 @foo(i64 %a) nounwind {
%b = add i64 %a, 4294967295
%c = and i64 %b, 4294967295
%d = add i64 %c, 1