aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Gohman <sunfish@mozilla.com>2014-02-26 18:16:15 -0800
committerDan Gohman <sunfish@mozilla.com>2014-02-28 11:22:37 -0800
commit3ef11173bf12b5fdc0a21bfd883b057718676e8f (patch)
treee622e570a3392e06d271bfcbc1c3398200fc705e
parent0dac79df771f7708a03e724126dded4f64531bc5 (diff)
Update tests for recent changes which result in more parens being used in some places.
-rw-r--r--test/CodeGen/JS/basics.ll4
-rw-r--r--test/CodeGen/JS/globals.ll4
2 files changed, 4 insertions, 4 deletions
diff --git a/test/CodeGen/JS/basics.ll b/test/CodeGen/JS/basics.ll
index 76237fd669..c24a92487f 100644
--- a/test/CodeGen/JS/basics.ll
+++ b/test/CodeGen/JS/basics.ll
@@ -7,7 +7,7 @@
; CHECK: [[VAL_D:\$[a-z]+]] = ([[VAL_C]]*20)|0;
; CHECK: [[VAL_E:\$[a-z]+]] = (([[VAL_D]]|0) / ([[VAL_A]]|0))&-1;
; CHECK: [[VAL_F:\$[a-z]+]] = (([[VAL_E]]) - 3)|0;
-; CHECK: return [[VAL_F]]|0;
+; CHECK: return ([[VAL_F]]|0);
define i32 @simple_integer_math(i32 %a, i32 %b) nounwind {
%c = add i32 %a, %b
%d = mul i32 %c, 20
@@ -20,7 +20,7 @@ define i32 @simple_integer_math(i32 %a, i32 %b) nounwind {
; CHECK: [[VAL_D:\$[a-z]+]] = +[[VAL_D]]
; CHECK: [[VAL_F:\$[a-z]+]] = +0
; CHECK: [[VAL_F]] = -[[VAL_D]]
-; CHECK: return +[[VAL_F]];
+; CHECK: return (+[[VAL_F]]);
define double @fneg(double %d) nounwind {
%f = fsub double -0.0, %d
ret double %f
diff --git a/test/CodeGen/JS/globals.ll b/test/CodeGen/JS/globals.ll
index 3a8a3a692c..4ae83eedb2 100644
--- a/test/CodeGen/JS/globals.ll
+++ b/test/CodeGen/JS/globals.ll
@@ -6,11 +6,11 @@
; CHECK: [[VAR_t:\$[a-z]+]] = HEAP32[2]|0;
; CHECK: [[VAR_s:\$[a-z]+]] = +HEAPF64[2];
; CHECK: [[VAR_u:\$[a-z]+]] = HEAP8[24]|0;
-; CHECK: [[VAR_a:\$[a-z]+]] = ~~(([[VAR_s:\$[a-z]+]]))>>>0;
+; CHECK: [[VAR_a:\$[a-z]+]] = (~~(([[VAR_s:\$[a-z]+]]))>>>0);
; CHECK: [[VAR_b:\$[a-z]+]] = [[VAR_u:\$[a-z]+]] << 24 >> 24;
; CHECK: [[VAR_c:\$[a-z]+]] = (([[VAR_t:\$[a-z]+]]) + ([[VAR_a:\$[a-z]+]]))|0;
; CHECK: [[VAR_d:\$[a-z]+]] = (([[VAR_c:\$[a-z]+]]) + ([[VAR_b:\$[a-z]+]]))|0;
-; CHECK: return [[VAR_d:\$[a-z]+]]|0;
+; CHECK: return ([[VAR_d:\$[a-z]+]]|0);
define i32 @loads() {
%t = load i32* @A
%s = load double* @B