blob: 12c87901f54ead7253eebf497408eb682470cde5 [file] [log] [blame]
Tanya Lattnerf28e0ce2008-02-19 01:41:04 +00001; RUN: llvm-as < %s | llc -march=c | grep volatile
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002
Tanya Lattnerf28e0ce2008-02-19 01:41:04 +00003define void @test(i32* %P) {
4 %X = volatile load i32* %P ; <i32> [#uses=1]
5 volatile store i32 %X, i32* %P
6 ret void
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007}
Tanya Lattnerf28e0ce2008-02-19 01:41:04 +00008