summaryrefslogtreecommitdiffstats
path: root/llvm/test/CodeGen/XCore/threads.ll
diff options
context:
space:
mode:
authorDan Gohman <dan433584@gmail.com>2016-01-22 03:57:34 +0000
committerDan Gohman <dan433584@gmail.com>2016-01-22 03:57:34 +0000
commit0bf3ae84cada4bbc6e21b70952e0bf8b723d8cd4 (patch)
treeaf99a8d9c638cecd47f2ec6301db79eea9b77edf /llvm/test/CodeGen/XCore/threads.ll
parentd05b899252b6108ba73bbd88dbd4f51dc09e5119 (diff)
downloadbcm5719-llvm-0bf3ae84cada4bbc6e21b70952e0bf8b723d8cd4.tar.gz
bcm5719-llvm-0bf3ae84cada4bbc6e21b70952e0bf8b723d8cd4.zip
[SelectionDAG] Fold more offsets into GlobalAddresses
This reapplies r258296 and r258366, and also fixes an existing bug in SelectionDAG.cpp's isMemSrcFromString, neglecting to account for the offset in a GlobalAddressSDNode, which is uncovered by those patches. llvm-svn: 258482
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 0c25314295d..30dda143e08 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, [[R1]], [[R0]]
+; CHECK: add r0, [[R0]], [[R1]]
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]]], [[R1]], [[R0]]
+; CHECK: add [[R2:r[0-9]]], [[R0]], [[R1]]
; 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