| 1 |
// NOTE: Assertions have been autogenerated by utils/update_cc_test_checks.py UTC_ARGS: --check-globals all --version 5 |
| 2 |
// RUN: %clang_cc1 -triple loongarch32 -emit-llvm %s -o - | FileCheck %s |
| 3 |
|
| 4 |
__attribute__((target("arch=la32v1.0"))) |
| 5 |
// CHECK-LABEL: define dso_local void @testLa32v10( |
| 6 |
// CHECK-SAME: ) #[[ATTR0:[0-9]+]] { |
| 7 |
// CHECK-NEXT: [[ENTRY:.*:]] |
| 8 |
// CHECK-NEXT: ret void |
| 9 |
// |
| 10 |
void testLa32v10() {} |
| 11 |
|
| 12 |
__attribute__((target("arch=la32rv1.0"))) |
| 13 |
// CHECK-LABEL: define dso_local void @testLa32rv10( |
| 14 |
// CHECK-SAME: ) #[[ATTR1:[0-9]+]] { |
| 15 |
// CHECK-NEXT: [[ENTRY:.*:]] |
| 16 |
// CHECK-NEXT: ret void |
| 17 |
// |
| 18 |
void testLa32rv10() {} |
| 19 |
|
| 20 |
//. |
| 21 |
// CHECK: attributes #[[ATTR0]] = { noinline nounwind optnone "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="loongarch32" "target-features"="+32bit,+32s" } |
| 22 |
// CHECK: attributes #[[ATTR1]] = { noinline nounwind optnone "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="loongarch32" "target-features"="+32bit" } |
| 23 |
//. |
| 24 |
// CHECK: [[META0:![0-9]+]] = !{i32 1, !"wchar_size", i32 4} |
| 25 |
// CHECK: [[META1:![0-9]+]] = !{!"{{.*}}clang version {{.*}}"} |
| 26 |
//. |