blob: dd505af4831b715cf01b9c9470a3fc9051d4c62b [file] [log] [blame]
Dan Gohmanda594cf2009-09-09 00:09:15 +00001; RUN: llc < %s -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