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

Unified Diff: test/Transforms/NaCl/remove-asm-memory.ll

Issue 1151093004: Changes from 3.7 merge to files not in upstream (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-llvm.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
Index: test/Transforms/NaCl/remove-asm-memory.ll
diff --git a/test/Transforms/NaCl/remove-asm-memory.ll b/test/Transforms/NaCl/remove-asm-memory.ll
index ae799a74597c8c152e3ddd5d50e63ec842552ea1..cd3f99c83e4132a66e6e71e912e8e447909f9650 100644
--- a/test/Transforms/NaCl/remove-asm-memory.ll
+++ b/test/Transforms/NaCl/remove-asm-memory.ll
@@ -39,31 +39,31 @@ define void @memory_assembly_encoding_test() {
define void @memory_assembly_ordering_test() {
; CHECK: @memory_assembly_ordering_test()
- %1 = load i32* @a, align 4
+ %1 = load i32, i32* @a, align 4
store i32 %1, i32* @b, align 4
call void asm sideeffect "", "~{memory}"()
fence seq_cst
call void asm sideeffect "", "~{memory}"()
- ; CHECK-NEXT: %1 = load i32* @a, align 4
+ ; CHECK-NEXT: %1 = load i32, i32* @a, align 4
; CHECK-NEXT: store i32 %1, i32* @b, align 4
; CHECK-NEXT: call void @llvm.nacl.atomic.fence.all()
; Redundant load from the previous location, and store to the same
; location (making the previous one dead). Shouldn't get eliminated
; because of the fence.
- %2 = load i32* @a, align 4
+ %2 = load i32, i32* @a, align 4
store i32 %2, i32* @b, align 4
call void asm sideeffect "", "~{memory}"()
fence seq_cst
call void asm sideeffect "", "~{memory}"()
- ; CHECK-NEXT: %2 = load i32* @a, align 4
+ ; CHECK-NEXT: %2 = load i32, i32* @a, align 4
; CHECK-NEXT: store i32 %2, i32* @b, align 4
; CHECK-NEXT: call void @llvm.nacl.atomic.fence.all()
; Same here.
- %3 = load i32* @a, align 4
+ %3 = load i32, i32* @a, align 4
store i32 %3, i32* @b, align 4
- ; CHECK-NEXT: %3 = load i32* @a, align 4
+ ; CHECK-NEXT: %3 = load i32, i32* @a, align 4
; CHECK-NEXT: store i32 %3, i32* @b, align 4
ret void
@@ -74,13 +74,13 @@ define void @memory_assembly_ordering_test() {
; stores should get eliminated.
define void @memory_ordering_test() {
; ELIM: @memory_ordering_test()
- %1 = load i32* @a, align 4
+ %1 = load i32, i32* @a, align 4
store i32 %1, i32* @b, align 4
- %2 = load i32* @a, align 4
+ %2 = load i32, i32* @a, align 4
store i32 %2, i32* @b, align 4
- %3 = load i32* @a, align 4
+ %3 = load i32, i32* @a, align 4
store i32 %3, i32* @b, align 4
- ; ELIM-NEXT: %1 = load i32* @a, align 4
+ ; ELIM-NEXT: %1 = load i32, i32* @a, align 4
; ELIM-NEXT: store i32 %1, i32* @b, align 4
ret void

Powered by Google App Engine
This is Rietveld 408576698