blob: 065e624a4c04f145cafc0677a549677c1e4ff188 [file] [log] [blame]
Martin Storsjoed95a082016-09-30 19:13:46 +00001// REQUIRES: arm-registered-target
2// RUN: %clang_cc1 -triple thumbv7-win32 -emit-llvm -fms-extensions -fms-volatile -o - < %s | FileCheck %s
3
4void test1(int volatile *p, int v) {
5 __iso_volatile_store32(p, v);
6 // CHECK-LABEL: @test1
7 // CHECK: store volatile {{.*}}, {{.*}}
8}
9int test2(const int volatile *p) {
10 return __iso_volatile_load32(p);
11 // CHECK-LABEL: @test2
12 // CHECK: load volatile {{.*}}
13}