1*9880d681SAndroid Build Coastguard Worker# RUN: llvm-mc -g -filetype=obj -triple x86_64-pc-linux-gnu %s -o %t.64 2*9880d681SAndroid Build Coastguard Worker# RUN: llvm-dwarfdump -debug-dump=info %t.64 | FileCheck -check-prefix=DEFAULTABI %s 3*9880d681SAndroid Build Coastguard Worker 4*9880d681SAndroid Build Coastguard Worker# RUN: llvm-mc -g -filetype=obj -triple x86_64-pc-linux-gnux32 %s -o %t.32 5*9880d681SAndroid Build Coastguard Worker# RUN: llvm-dwarfdump -debug-dump=info %t.32 | FileCheck -check-prefix=X32ABI %s 6*9880d681SAndroid Build Coastguard Worker 7*9880d681SAndroid Build Coastguard Worker# This test checks the dwarf info section emitted to the output object by the 8*9880d681SAndroid Build Coastguard Worker# assembler, looking at the difference between the x32 ABI and default x86-64 9*9880d681SAndroid Build Coastguard Worker# ABI. 10*9880d681SAndroid Build Coastguard Worker 11*9880d681SAndroid Build Coastguard Worker# DEFAULTABI: addr_size = 0x08 12*9880d681SAndroid Build Coastguard Worker# X32ABI: addr_size = 0x04 13*9880d681SAndroid Build Coastguard Worker 14*9880d681SAndroid Build Coastguard Worker.globl _bar 15*9880d681SAndroid Build Coastguard Worker_bar: 16*9880d681SAndroid Build Coastguard Worker movl $0, %eax 17*9880d681SAndroid Build Coastguard WorkerL1: leave 18*9880d681SAndroid Build Coastguard Worker ret 19*9880d681SAndroid Build Coastguard Worker_foo: 20*9880d681SAndroid Build Coastguard Worker_baz: 21*9880d681SAndroid Build Coastguard Worker nop 22*9880d681SAndroid Build Coastguard Worker.data 23*9880d681SAndroid Build Coastguard Worker_x: .long 1 24*9880d681SAndroid Build Coastguard Worker 25