1; RUN: llc < %s -mtriple=x86_64-unknown-linux | FileCheck --check-prefix=NO-ADDRSIG %s 2; RUN: llc < %s -mtriple=x86_64-unknown-linux -addrsig | FileCheck %s 3 4; NO-ADDRSIG-NOT: .addrsig 5 6; CHECK: .addrsig 7 8; CHECK: .addrsig_sym f1 9define void @f1() { 10 %f1 = bitcast void()* @f1 to i8* 11 %f2 = bitcast void()* @f2 to i8* 12 %f3 = bitcast void()* @f3 to i8* 13 %g1 = bitcast i32* @g1 to i8* 14 %g2 = bitcast i32* @g2 to i8* 15 %g3 = bitcast i32* @g3 to i8* 16 %dllimport = bitcast i32* @dllimport to i8* 17 %tls = bitcast i32* @tls to i8* 18 %a1 = bitcast i32* @a1 to i8* 19 %a2 = bitcast i32* @a2 to i8* 20 %i1 = bitcast void()* @i1 to i8* 21 %i2 = bitcast void()* @i2 to i8* 22 unreachable 23} 24 25; CHECK-NOT: .addrsig_sym f2 26define internal void @f2() local_unnamed_addr { 27 unreachable 28} 29 30; CHECK-NOT: .addrsig_sym f3 31declare void @f3() unnamed_addr 32 33; CHECK: .addrsig_sym g1 34@g1 = global i32 0 35; CHECK-NOT: .addrsig_sym g2 36@g2 = internal local_unnamed_addr global i32 0 37; CHECK-NOT: .addrsig_sym g3 38@g3 = external unnamed_addr global i32 39 40; CHECK-NOT: .addrsig_sym unref 41@unref = external global i32 42 43; CHECK-NOT: .addrsig_sym dllimport 44@dllimport = external dllimport global i32 45 46; CHECK-NOT: .addrsig_sym tls 47@tls = thread_local global i32 0 48 49; CHECK: .addrsig_sym a1 50@a1 = alias i32, i32* @g1 51; CHECK-NOT: .addrsig_sym a2 52@a2 = internal local_unnamed_addr alias i32, i32* @g2 53 54; CHECK: .addrsig_sym i1 55@i1 = ifunc void(), void()* @f1 56; CHECK-NOT: .addrsig_sym i2 57@i2 = internal local_unnamed_addr ifunc void(), void()* @f2 58