diff --git a/llvm/test/Regression/CodeGen/CBackend/2005-02-14-VolatileOperations.ll b/llvm/test/Regression/CodeGen/CBackend/2005-02-14-VolatileOperations.ll new file mode 100644 index 000000000000..b6089d1d19ac --- /dev/null +++ b/llvm/test/Regression/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 +}