summaryrefslogtreecommitdiffstats
path: root/llvm/test/CodeGen/XCore/threads.ll
diff options
context:
space:
mode:
authorReid Kleckner <rnk@google.com>2016-01-22 01:09:29 +0000
committerReid Kleckner <rnk@google.com>2016-01-22 01:09:29 +0000
commitb7ecfa5b090aa4ca1607b6803f6a5db8a4873a65 (patch)
treeeaca292da57ddb54f76f7125a2de355f3a8f78c5 /llvm/test/CodeGen/XCore/threads.ll
parentb5e984992ac5fa0a0fad76886607711d884cec8f (diff)
downloadbcm5719-llvm-b7ecfa5b090aa4ca1607b6803f6a5db8a4873a65.tar.gz
bcm5719-llvm-b7ecfa5b090aa4ca1607b6803f6a5db8a4873a65.zip
Revert "[SelectionDAG] Fold more offsets into GlobalAddresses"
This reverts r258296 and the follow up r258366. With this change, we miscompiled the following program on Windows: #include <string> #include <iostream> static const char kData[] = "asdf jkl;"; int main() { std::string s(kData + 3, sizeof(kData) - 3); std::cout << s << '\n'; } llvm-svn: 258465
Diffstat (limited to 'llvm/test/CodeGen/XCore/threads.ll')
-rw-r--r--llvm/test/CodeGen/XCore/threads.ll4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/test/CodeGen/XCore/threads.ll b/llvm/test/CodeGen/XCore/threads.ll
index 30dda143e08..0c25314295d 100644
--- a/llvm/test/CodeGen/XCore/threads.ll
+++ b/llvm/test/CodeGen/XCore/threads.ll
@@ -87,7 +87,7 @@ define i32* @f_tle() {
; CHECK: shl [[R0:r[0-9]]], r11, 3
; CHECK: ldaw [[R1:r[0-9]]], dp[tle]
; r0 = &tl + id*8
-; CHECK: add r0, [[R0]], [[R1]]
+; CHECK: add r0, [[R1]], [[R0]]
ret i32* getelementptr inbounds ([2 x i32], [2 x i32]* @tle, i32 0, i32 0)
}
@@ -96,7 +96,7 @@ define i32 @f_tlExpr () {
; CHECK: get r11, id
; CHECK: shl [[R0:r[0-9]]], r11, 3
; CHECK: ldaw [[R1:r[0-9]]], dp[tle]
-; CHECK: add [[R2:r[0-9]]], [[R0]], [[R1]]
+; CHECK: add [[R2:r[0-9]]], [[R1]], [[R0]]
; CHECK: add r0, [[R2]], [[R2]]
ret i32 add(
i32 ptrtoint( i32* getelementptr inbounds ([2 x i32], [2 x i32]* @tle, i32 0, i32 0) to i32),
OpenPOWER on IntegriCloud