~shimon/dismaltc

ref: 461e0617cb03f1d5027af4fbb3da0722791022e9 dismaltc/clang/disable-test/CodeGen/ms-volatile-arm.c -rw-r--r-- 411 bytes
461e0617Itoh Shimon re-enable tests. 1 year, 6 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
// REQUIRES: arm-registered-target
// RUN: %clang_cc1 -triple thumbv7-win32 -emit-llvm -fms-extensions -fms-volatile -o - < %s | FileCheck %s

void test1(int volatile *p, int v) {
  __iso_volatile_store32(p, v);
  // CHECK-LABEL: @test1
  // CHECK: store volatile {{.*}}, {{.*}}
}
int test2(const int volatile *p) {
  return __iso_volatile_load32(p);
  // CHECK-LABEL: @test2
  // CHECK: load volatile {{.*}}
}