1*9880d681SAndroid Build Coastguard Worker; RUN: llc -mtriple=x86_64-linux-gnu < %s | FileCheck %s --check-prefix=CHECK64 2*9880d681SAndroid Build Coastguard Worker; RUN: llc -mtriple=i686-linux-gnu < %s | FileCheck %s --check-prefix=CHECK32 3*9880d681SAndroid Build Coastguard Worker 4*9880d681SAndroid Build Coastguard Workerdefine i32 @main(i32 %x) nounwind gc "erlang" { 5*9880d681SAndroid Build Coastguard Worker %puts = tail call i32 @foo(i32 %x) 6*9880d681SAndroid Build Coastguard Worker ret i32 0 7*9880d681SAndroid Build Coastguard Worker 8*9880d681SAndroid Build Coastguard Worker; CHECK64: .section .note.gc,"",@progbits 9*9880d681SAndroid Build Coastguard Worker; CHECK64-NEXT: .p2align 3 10*9880d681SAndroid Build Coastguard Worker; CHECK64-NEXT: .short 1 # safe point count 11*9880d681SAndroid Build Coastguard Worker; CHECK64-NEXT: .long .Ltmp0 # safe point address 12*9880d681SAndroid Build Coastguard Worker; CHECK64-NEXT: .short 1 # stack frame size (in words) 13*9880d681SAndroid Build Coastguard Worker; CHECK64-NEXT: .short 0 # stack arity 14*9880d681SAndroid Build Coastguard Worker; CHECK64-NEXT: .short 0 # live root count 15*9880d681SAndroid Build Coastguard Worker 16*9880d681SAndroid Build Coastguard Worker; CHECK32: .section .note.gc,"",@progbits 17*9880d681SAndroid Build Coastguard Worker; CHECK32-NEXT: .p2align 2 18*9880d681SAndroid Build Coastguard Worker; CHECK32-NEXT: .short 1 # safe point count 19*9880d681SAndroid Build Coastguard Worker; CHECK32-NEXT: .long .Ltmp0 # safe point address 20*9880d681SAndroid Build Coastguard Worker; CHECK32-NEXT: .short 3 # stack frame size (in words) 21*9880d681SAndroid Build Coastguard Worker; CHECK32-NEXT: .short 0 # stack arity 22*9880d681SAndroid Build Coastguard Worker; CHECK32-NEXT: .short 0 # live root count 23*9880d681SAndroid Build Coastguard Worker} 24*9880d681SAndroid Build Coastguard Worker 25*9880d681SAndroid Build Coastguard Workerdeclare i32 @foo(i32) 26