| Weiming Zhao | b38cfce | 2016-12-05 23:55:13 +0000 | [diff] [blame] | 1 | // REQUIRES: asserts | 
|  | 2 | // RUN: llvm-mc < %s  -triple=armv4t-linux-gnueabi -filetype=obj -o %t.o -no-deprecated-warn -stats 2>&1 | FileCheck %s | 
|  | 3 | // RUN: llvm-mc < %s  -triple=armv4t-linux-gnueabi -filetype=obj -o %t.o 2>&1 | FileCheck %s -check-prefix=WARN | 
|  | 4 |  | 
|  | 5 | .text | 
|  | 6 | .syntax unified | 
|  | 7 | .eabi_attribute	67, "2.09"	@ Tag_conformance | 
|  | 8 | .cpu	arm7tdmi | 
|  | 9 | .eabi_attribute	6, 2	@ Tag_CPU_arch | 
|  | 10 | .eabi_attribute	8, 1	@ Tag_ARM_ISA_use | 
|  | 11 | .eabi_attribute	17, 1	@ Tag_ABI_PCS_GOT_use | 
|  | 12 | .eabi_attribute	20, 1	@ Tag_ABI_FP_denormal | 
|  | 13 | .eabi_attribute	21, 1	@ Tag_ABI_FP_exceptions | 
|  | 14 | .eabi_attribute	23, 3	@ Tag_ABI_FP_number_model | 
|  | 15 | .eabi_attribute	34, 0	@ Tag_CPU_unaligned_access | 
|  | 16 | .eabi_attribute	24, 1	@ Tag_ABI_align_needed | 
|  | 17 | .eabi_attribute	25, 1	@ Tag_ABI_align_preserved | 
|  | 18 | .eabi_attribute	38, 1	@ Tag_ABI_FP_16bit_format | 
|  | 19 | .eabi_attribute	18, 4	@ Tag_ABI_PCS_wchar_t | 
|  | 20 | .eabi_attribute	26, 2	@ Tag_ABI_enum_size | 
|  | 21 | .eabi_attribute	14, 0	@ Tag_ABI_PCS_R9_use | 
|  | 22 | .file	"t.c" | 
|  | 23 | .globl	foo | 
|  | 24 | .p2align	2 | 
|  | 25 | .type	foo,%function | 
|  | 26 | foo:                                    @ @foo | 
|  | 27 | .fnstart | 
| Francis Visoiu Mistrih | 25528d6 | 2017-12-04 17:18:51 +0000 | [diff] [blame] | 28 | @ %bb.0:                                @ %entry | 
| Weiming Zhao | b38cfce | 2016-12-05 23:55:13 +0000 | [diff] [blame] | 29 | mov	r0, #0 | 
|  | 30 | bx	lr | 
|  | 31 | stmia   r4!, {r12-r14} | 
|  | 32 | .Lfunc_end0: | 
|  | 33 | .Ltmp0: | 
|  | 34 | .size	foo, .Ltmp0-foo | 
|  | 35 | .cantunwind | 
|  | 36 | .fnend | 
|  | 37 |  | 
|  | 38 |  | 
|  | 39 |  | 
|  | 40 | // CHECK: Statistic | 
|  | 41 | // CHECK-NOT: warning | 
|  | 42 |  | 
|  | 43 | // WARN: warning |