summaryrefslogtreecommitdiffstats
path: root/test/CodeGen/CBackend/2005-02-14-VolatileOperations.ll
blob: dd505af4831b715cf01b9c9470a3fc9051d4c62b (plain)
1
2
3
4
5
6
7
8
; RUN: llc < %s -march=c | grep volatile

define void @test(i32* %P) {
        %X = volatile load i32* %P              ; <i32> [#uses=1]
        volatile store i32 %X, i32* %P
        ret void
}

OpenPOWER on IntegriCloud