diff options
Diffstat (limited to 'test/Transforms/MemCpyOpt/2011-06-02-CallSlotOverwritten.ll')
-rw-r--r-- | test/Transforms/MemCpyOpt/2011-06-02-CallSlotOverwritten.ll | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/test/Transforms/MemCpyOpt/2011-06-02-CallSlotOverwritten.ll b/test/Transforms/MemCpyOpt/2011-06-02-CallSlotOverwritten.ll index 132966e..8e4a023 100644 --- a/test/Transforms/MemCpyOpt/2011-06-02-CallSlotOverwritten.ll +++ b/test/Transforms/MemCpyOpt/2011-06-02-CallSlotOverwritten.ll @@ -17,20 +17,20 @@ define i32 @foo() nounwind { call void @bar(%struct1* sret %x) nounwind ; CHECK: call void @bar(%struct1* sret %x) - %gepn1 = getelementptr inbounds %struct2* %y, i32 0, i32 0, i32 0 + %gepn1 = getelementptr inbounds %struct2, %struct2* %y, i32 0, i32 0, i32 0 store i32 0, i32* %gepn1, align 8 - %gepn2 = getelementptr inbounds %struct2* %y, i32 0, i32 0, i32 1 + %gepn2 = getelementptr inbounds %struct2, %struct2* %y, i32 0, i32 0, i32 1 store i32 0, i32* %gepn2, align 4 %bit1 = bitcast %struct1* %x to i64* %bit2 = bitcast %struct2* %y to i64* - %load = load i64* %bit1, align 8 + %load = load i64, i64* %bit1, align 8 store i64 %load, i64* %bit2, align 8 -; CHECK: %load = load i64* %bit1, align 8 +; CHECK: %load = load i64, i64* %bit1, align 8 ; CHECK: store i64 %load, i64* %bit2, align 8 - %gep1 = getelementptr %struct2* %y, i32 0, i32 0, i32 0 - %ret = load i32* %gep1 + %gep1 = getelementptr %struct2, %struct2* %y, i32 0, i32 0, i32 0 + %ret = load i32, i32* %gep1 ret i32 %ret } |