22// RUN: %clang_cc1 -triple thumbv7m-apple-unknown-macho %s -emit-llvm -o - | FileCheck %s --check-prefixes=CHECK,CHECK-V7M
33// RUN: %clang_cc1 -triple thumbv7-apple-ios13.0 %s -emit-llvm -o - | FileCheck %s --check-prefixes=CHECK,CHECK-HOSTED
44// RUN: %clang_cc1 -triple thumbv7k-apple-watchos5.0 %s -emit-llvm -o - | FileCheck %s --check-prefixes=CHECK,CHECK-HOSTED
5-
5+ // RUN: %clang_cc1 -triple arm-linux-gnueabi %s -emit-llvm -o - | FileCheck %s --check-prefixes=CHECK,CHECK-HOSTED
6+ // RUN: %clang_cc1 -triple armv7-none-eabi %s -emit-llvm -o - | FileCheck %s --check-prefixes=CHECK,CHECK-HOSTED
7+ // RUN: %clang_cc1 -triple thumbv6k-none-eabi %s -emit-llvm -o - | FileCheck %s --check-prefixes=CHECK,CHECK-HOSTED
8+ // RUN: %clang_cc1 -triple armv5-none-eabi %s -emit-llvm -o - | FileCheck %s --check-prefixes=CHECK,CHECK-V6M
69
710// CHECK-V6M: @always1 = global i32 0
811// CHECK-V6M: @always4 = global i32 0
@@ -22,7 +25,7 @@ int always8 = __atomic_always_lock_free(8, 0);
2225
2326int lock_free_1 () {
2427 // CHECK-LABEL: @lock_free_1
25- // CHECK-V6M: [[RES:%.*]] = call arm_aapcscc zeroext i1 @__atomic_is_lock_free(i32 noundef 1, ptr noundef null)
28+ // CHECK-V6M: [[RES:%.*]] = call{{.*}} zeroext i1 @__atomic_is_lock_free(i32 noundef 1, ptr noundef null)
2629 // CHECK-V6M: [[RES32:%.*]] = zext i1 [[RES]] to i32
2730 // CHECK-V6M: ret i32 [[RES32]]
2831
@@ -33,7 +36,7 @@ int lock_free_1() {
3336
3437int lock_free_4 () {
3538 // CHECK-LABEL: @lock_free_4
36- // CHECK-V6M: [[RES:%.*]] = call arm_aapcscc zeroext i1 @__atomic_is_lock_free(i32 noundef 4, ptr noundef null)
39+ // CHECK-V6M: [[RES:%.*]] = call{{.*}} zeroext i1 @__atomic_is_lock_free(i32 noundef 4, ptr noundef null)
3740 // CHECK-V6M: [[RES32:%.*]] = zext i1 [[RES]] to i32
3841 // CHECK-V6M: ret i32 [[RES32]]
3942
@@ -44,11 +47,11 @@ int lock_free_4() {
4447
4548int lock_free_8 () {
4649 // CHECK-LABEL: @lock_free_8
47- // CHECK-V6M: [[RES:%.*]] = call arm_aapcscc zeroext i1 @__atomic_is_lock_free(i32 noundef 8, ptr noundef null)
50+ // CHECK-V6M: [[RES:%.*]] = call{{.*}} zeroext i1 @__atomic_is_lock_free(i32 noundef 8, ptr noundef null)
4851 // CHECK-V6M: [[RES32:%.*]] = zext i1 [[RES]] to i32
4952 // CHECK-V6M: ret i32 [[RES32]]
5053
51- // CHECK-V7M: [[RES:%.*]] = call arm_aapcscc zeroext i1 @__atomic_is_lock_free(i32 noundef 8, ptr noundef null)
54+ // CHECK-V7M: [[RES:%.*]] = call{{.*}} zeroext i1 @__atomic_is_lock_free(i32 noundef 8, ptr noundef null)
5255 // CHECK-V7M: [[RES32:%.*]] = zext i1 [[RES]] to i32
5356 // CHECK-V7M: ret i32 [[RES32]]
5457
0 commit comments