summaryrefslogtreecommitdiffstats
path: root/llvm/test/CodeGen/CBackend/2005-02-14-VolatileOperations.ll
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/test/CodeGen/CBackend/2005-02-14-VolatileOperations.ll')
-rw-r--r--llvm/test/CodeGen/CBackend/2005-02-14-VolatileOperations.ll7
1 files changed, 7 insertions, 0 deletions
diff --git a/llvm/test/CodeGen/CBackend/2005-02-14-VolatileOperations.ll b/llvm/test/CodeGen/CBackend/2005-02-14-VolatileOperations.ll
new file mode 100644
index 00000000000..e161e46b558
--- /dev/null
+++ b/llvm/test/CodeGen/CBackend/2005-02-14-VolatileOperations.ll
@@ -0,0 +1,7 @@
+; RUN: llvm-upgrade < %s | llvm-as | llc -march=c | grep volatile
+
+void %test(int* %P) {
+ %X = volatile load int*%P
+ volatile store int %X, int* %P
+ ret void
+}
OpenPOWER on IntegriCloud