[llvm-commits] CVS: llvm/test/Regression/Transforms/GCSE/RLE-Preserve-Volatile.ll
Chris Lattner
lattner at cs.uiuc.edu
Mon Sep 8 12:44:02 PDT 2003
Changes in directory llvm/test/Regression/Transforms/GCSE:
RLE-Preserve-Volatile.ll added (r1.1)
---
Log message:
New testcase
---
Diffs of the changes:
Index: llvm/test/Regression/Transforms/GCSE/RLE-Preserve-Volatile.ll
diff -c /dev/null llvm/test/Regression/Transforms/GCSE/RLE-Preserve-Volatile.ll:1.1
*** /dev/null Mon Sep 8 12:43:46 2003
--- llvm/test/Regression/Transforms/GCSE/RLE-Preserve-Volatile.ll Mon Sep 8 12:43:36 2003
***************
*** 0 ****
--- 1,9 ----
+
+ ; RUN: llvm-as < %s | opt -load-vn -gcse -instcombine | dis | grep sub
+
+ int %test(int* %P) {
+ %X = load volatile int* %P
+ %Y = load volatile int* %P
+ %Z = sub int %X, %Y
+ ret int %Z
+ }
More information about the llvm-commits
mailing list