blob: dd505af4831b715cf01b9c9470a3fc9051d4c62b [file] [log] [blame]
Dan Gohmanfce288f2009-09-09 00:09:15 +00001; RUN: llc < %s -march=c | grep volatile
Chris Lattneree6cfda2005-02-14 16:45:38 +00002
Tanya Lattner53a66d12008-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
Chris Lattneree6cfda2005-02-14 16:45:38 +00007}
Tanya Lattner53a66d12008-02-19 01:41:04 +00008