aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--test/CodeGen/CBackend/2005-02-14-VolatileOperations.ll7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/CodeGen/CBackend/2005-02-14-VolatileOperations.ll b/test/CodeGen/CBackend/2005-02-14-VolatileOperations.ll
new file mode 100644
index 0000000000..b6089d1d19
--- /dev/null
+++ b/test/CodeGen/CBackend/2005-02-14-VolatileOperations.ll
@@ -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
+}