OSDN Git Service

new testcase
authorChris Lattner <sabre@nondot.org>
Mon, 14 Feb 2005 16:45:38 +0000 (16:45 +0000)
committerChris Lattner <sabre@nondot.org>
Mon, 14 Feb 2005 16:45:38 +0000 (16:45 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@20176 91177308-0d34-0410-b5e6-96231b3b80d8

test/CodeGen/CBackend/2005-02-14-VolatileOperations.ll [new file with mode: 0644]

diff --git a/test/CodeGen/CBackend/2005-02-14-VolatileOperations.ll b/test/CodeGen/CBackend/2005-02-14-VolatileOperations.ll
new file mode 100644 (file)
index 0000000..b6089d1
--- /dev/null
@@ -0,0 +1,7 @@
+; RUN: llvm-as < %s | llc -march=c | grep volatile
+
+void %test(int* %P) {
+       %X = volatile load int*%P
+       volatile store int %X, int* %P
+       ret void
+}