Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(415)

Unified Diff: tests_lit/llvm2ice_tests/load_cast.ll

Issue 1161543005: Subzero: Changes needed for LLVM 3.7 integration. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Created 5 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « tests_lit/llvm2ice_tests/load.ll ('k') | tests_lit/llvm2ice_tests/nacl-atomic-fence-all.ll » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests_lit/llvm2ice_tests/load_cast.ll
diff --git a/tests_lit/llvm2ice_tests/load_cast.ll b/tests_lit/llvm2ice_tests/load_cast.ll
index 5395d04ff82f3ceef53a9494fc15d01d443411c6..07e71737ad30ec2027db40e97001dafbd113982c 100644
--- a/tests_lit/llvm2ice_tests/load_cast.ll
+++ b/tests_lit/llvm2ice_tests/load_cast.ll
@@ -11,7 +11,7 @@ define internal i32 @zext_fold(i32 %arg) {
entry:
%ptr = add i32 %arg, 200
%addr = inttoptr i32 %ptr to i8*
- %load = load i8* %addr, align 1
+ %load = load i8, i8* %addr, align 1
%result = zext i8 %load to i32
ret i32 %result
}
@@ -22,7 +22,7 @@ define internal i32 @zext_nofold(i32 %arg) {
entry:
%ptr = add i32 %arg, 200
%addr = inttoptr i32 %ptr to i8*
- %load = load i8* %addr, align 1
+ %load = load i8, i8* %addr, align 1
%tmp1 = zext i8 %load to i32
%tmp2 = zext i8 %load to i32
%result = add i32 %tmp1, %tmp2
@@ -36,7 +36,7 @@ define internal i32 @sext_fold(i32 %arg) {
entry:
%ptr = add i32 %arg, 200
%addr = inttoptr i32 %ptr to i8*
- %load = load i8* %addr, align 1
+ %load = load i8, i8* %addr, align 1
%result = sext i8 %load to i32
ret i32 %result
}
@@ -47,7 +47,7 @@ define internal i32 @sext_nofold(i32 %arg) {
entry:
%ptr = add i32 %arg, 200
%addr = inttoptr i32 %ptr to i8*
- %load = load i8* %addr, align 1
+ %load = load i8, i8* %addr, align 1
%tmp1 = sext i8 %load to i32
%tmp2 = sext i8 %load to i32
%result = add i32 %tmp1, %tmp2
@@ -61,7 +61,7 @@ define internal float @fptrunc_fold(i32 %arg) {
entry:
%ptr = add i32 %arg, 200
%addr = inttoptr i32 %ptr to double*
- %load = load double* %addr, align 8
+ %load = load double, double* %addr, align 8
%result = fptrunc double %load to float
ret float %result
}
@@ -72,7 +72,7 @@ define internal float @fptrunc_nofold(i32 %arg) {
entry:
%ptr = add i32 %arg, 200
%addr = inttoptr i32 %ptr to double*
- %load = load double* %addr, align 8
+ %load = load double, double* %addr, align 8
%tmp1 = fptrunc double %load to float
%tmp2 = fptrunc double %load to float
%result = fadd float %tmp1, %tmp2
@@ -86,7 +86,7 @@ define internal double @fpext_fold(i32 %arg) {
entry:
%ptr = add i32 %arg, 200
%addr = inttoptr i32 %ptr to float*
- %load = load float* %addr, align 4
+ %load = load float, float* %addr, align 4
%result = fpext float %load to double
ret double %result
}
@@ -97,7 +97,7 @@ define internal double @fpext_nofold(i32 %arg) {
entry:
%ptr = add i32 %arg, 200
%addr = inttoptr i32 %ptr to float*
- %load = load float* %addr, align 4
+ %load = load float, float* %addr, align 4
%tmp1 = fpext float %load to double
%tmp2 = fpext float %load to double
%result = fadd double %tmp1, %tmp2
@@ -111,7 +111,7 @@ define internal i32 @fptoui_fold(i32 %arg) {
entry:
%ptr = add i32 %arg, 200
%addr = inttoptr i32 %ptr to double*
- %load = load double* %addr, align 8
+ %load = load double, double* %addr, align 8
%result = fptoui double %load to i16
%result2 = zext i16 %result to i32
ret i32 %result2
@@ -123,7 +123,7 @@ define internal i32 @fptoui_nofold(i32 %arg) {
entry:
%ptr = add i32 %arg, 200
%addr = inttoptr i32 %ptr to double*
- %load = load double* %addr, align 8
+ %load = load double, double* %addr, align 8
%tmp1 = fptoui double %load to i16
%tmp2 = fptoui double %load to i16
%result = add i16 %tmp1, %tmp2
@@ -138,7 +138,7 @@ define internal i32 @fptosi_fold(i32 %arg) {
entry:
%ptr = add i32 %arg, 200
%addr = inttoptr i32 %ptr to double*
- %load = load double* %addr, align 8
+ %load = load double, double* %addr, align 8
%result = fptosi double %load to i16
%result2 = zext i16 %result to i32
ret i32 %result2
@@ -150,7 +150,7 @@ define internal i32 @fptosi_nofold(i32 %arg) {
entry:
%ptr = add i32 %arg, 200
%addr = inttoptr i32 %ptr to double*
- %load = load double* %addr, align 8
+ %load = load double, double* %addr, align 8
%tmp1 = fptosi double %load to i16
%tmp2 = fptosi double %load to i16
%result = add i16 %tmp1, %tmp2
@@ -165,7 +165,7 @@ define internal double @uitofp_fold(i32 %arg) {
entry:
%ptr = add i32 %arg, 200
%addr = inttoptr i32 %ptr to i16*
- %load = load i16* %addr, align 1
+ %load = load i16, i16* %addr, align 1
%result = uitofp i16 %load to double
ret double %result
}
@@ -176,7 +176,7 @@ define internal double @uitofp_nofold(i32 %arg) {
entry:
%ptr = add i32 %arg, 200
%addr = inttoptr i32 %ptr to i16*
- %load = load i16* %addr, align 1
+ %load = load i16, i16* %addr, align 1
%tmp1 = uitofp i16 %load to double
%tmp2 = uitofp i16 %load to double
%result = fadd double %tmp1, %tmp2
@@ -190,7 +190,7 @@ define internal double @sitofp_fold(i32 %arg) {
entry:
%ptr = add i32 %arg, 200
%addr = inttoptr i32 %ptr to i16*
- %load = load i16* %addr, align 1
+ %load = load i16, i16* %addr, align 1
%result = sitofp i16 %load to double
ret double %result
}
@@ -201,7 +201,7 @@ define internal double @sitofp_nofold(i32 %arg) {
entry:
%ptr = add i32 %arg, 200
%addr = inttoptr i32 %ptr to i16*
- %load = load i16* %addr, align 1
+ %load = load i16, i16* %addr, align 1
%tmp1 = sitofp i16 %load to double
%tmp2 = sitofp i16 %load to double
%result = fadd double %tmp1, %tmp2
@@ -215,7 +215,7 @@ define internal double @bitcast_i64_fold(i32 %arg) {
entry:
%ptr = add i32 %arg, 200
%addr = inttoptr i32 %ptr to i64*
- %load = load i64* %addr, align 1
+ %load = load i64, i64* %addr, align 1
%result = bitcast i64 %load to double
ret double %result
}
@@ -226,7 +226,7 @@ define internal double @bitcast_i64_nofold(i32 %arg) {
entry:
%ptr = add i32 %arg, 200
%addr = inttoptr i32 %ptr to i64*
- %load = load i64* %addr, align 1
+ %load = load i64, i64* %addr, align 1
%tmp1 = bitcast i64 %load to double
%tmp2 = bitcast i64 %load to double
%result = fadd double %tmp1, %tmp2
@@ -240,7 +240,7 @@ define internal i64 @bitcast_double_fold(i32 %arg) {
entry:
%ptr = add i32 %arg, 200
%addr = inttoptr i32 %ptr to double*
- %load = load double* %addr, align 8
+ %load = load double, double* %addr, align 8
%result = bitcast double %load to i64
ret i64 %result
}
@@ -254,7 +254,7 @@ define internal i64 @bitcast_double_nofold(i32 %arg) {
entry:
%ptr = add i32 %arg, 200
%addr = inttoptr i32 %ptr to double*
- %load = load double* %addr, align 8
+ %load = load double, double* %addr, align 8
%tmp1 = bitcast double %load to i64
%tmp2 = bitcast double %load to i64
%result = add i64 %tmp1, %tmp2
« no previous file with comments | « tests_lit/llvm2ice_tests/load.ll ('k') | tests_lit/llvm2ice_tests/nacl-atomic-fence-all.ll » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698