llvm-project
19 строк · 509.0 Байт
1; Test autoupgrade of arch-specific thread pointer intrinsics
2; RUN: llvm-as < %s | llvm-dis | FileCheck %s
3
4declare ptr @llvm.aarch64.thread.pointer()
5declare ptr @llvm.arm.thread.pointer()
6
7define ptr @test1() {
8; CHECK-LABEL: define ptr @test1()
9; CHECK: call ptr @llvm.thread.pointer()
10%1 = call ptr @llvm.aarch64.thread.pointer()
11ret ptr %1
12}
13
14define ptr @test2() {
15; CHECK-LABEL: define ptr @test2()
16; CHECK: call ptr @llvm.thread.pointer()
17%1 = call ptr @llvm.arm.thread.pointer()
18ret ptr %1
19}
20