1 ; Test autoupgrade of arch-specific thread pointer intrinsics
2 ; RUN: llvm-as < %s | llvm-dis | FileCheck %s
4 declare ptr @llvm.aarch64.thread.pointer()
5 declare ptr @llvm.arm.thread.pointer()
8 ; CHECK-LABEL: define ptr @test1()
9 ; CHECK: call ptr @llvm.thread.pointer()
10 %1 = call ptr @llvm.aarch64.thread.pointer()
15 ; CHECK-LABEL: define ptr @test2()
16 ; CHECK: call ptr @llvm.thread.pointer()
17 %1 = call ptr @llvm.arm.thread.pointer()