1 # RUN: llvm-mc -triple mips-unknown-linux -filetype=obj \ 2 # RUN: -mips-round-section-sizes %s | llvm-readobj -sections | FileCheck %s 3 .section ".talign1", "ax" 4 .p2align 4 5 t1: .byte 1 6 7 .section ".talign2", "ax" 8 .p2align 3 9 t2: addiu $2, $2, 1 10 addiu $2, $2, 1 11 12 .section ".talign3", "ax" 13 .p2align 3 14 t3: addiu $2, $2, 1 15 16 .section ".talign4", "ax" 17 t4: .byte 1 18 19 .section ".dalign1", "a" 20 .p2align 4 21 d1: .byte 1 22 23 .section ".dalign2", "a" 24 .p2align 3 25 d2: .word 1 26 .word 2 27 28 .section ".dalign3", "a" 29 .p2align 3 30 d3: .word 1 31 32 .section ".dalign4", "a" 33 d4: .byte 1 34 35 .section ".dalign5", "a" 36 .p2align 16 37 d5: .word 1 38 39 .section ".nalign1", "" 40 .p2align 4 41 n1: .byte 1 42 43 .section ".nalign2", "" 44 .p2align 3 45 n2: .word 1 46 .word 2 47 48 .section ".nalign3", "" 49 .p2align 3 50 n3: .word 1 51 52 .section ".nalign4", "" 53 n4: .byte 1 54 55 # CHECK-LABEL: Name: .talign1 56 # CHECK: Size: 16 57 # CHECK: AddressAlignment: 16 58 # CHECK-LABEL: } 59 # CHECK-LABEL: Name: .talign2 60 # CHECK: Size: 8 61 # CHECK: AddressAlignment: 8 62 # CHECK-LABEL: } 63 # CHECK-LABEL: Name: .talign3 64 # CHECK: Size: 8 65 # CHECK: AddressAlignment: 8 66 # CHECK-LABEL: } 67 # CHECK-LABEL: Name: .talign4 68 # CHECK: Size: 1 69 # CHECK: AddressAlignment: 1 70 # CHECK-LABEL: } 71 # CHECK-LABEL: Name: .dalign1 72 # CHECK: Size: 16 73 # CHECK: AddressAlignment: 16 74 # CHECK-LABEL: } 75 # CHECK-LABEL: Name: .dalign2 76 # CHECK: Size: 8 77 # CHECK: AddressAlignment: 8 78 # CHECK-LABEL: } 79 # CHECK-LABEL: Name: .dalign3 80 # CHECK: Size: 8 81 # CHECK: AddressAlignment: 8 82 # CHECK-LABEL: } 83 # CHECK-LABEL: Name: .dalign4 84 # CHECK: Size: 1 85 # CHECK: AddressAlignment: 1 86 # CHECK-LABEL: } 87 # CHECK-LABEL: Name: .dalign5 88 # CHECK: Size: 65536 89 # CHECK: AddressAlignment: 65536 90 # CHECK-LABEL: } 91 # CHECK-LABEL: Name: .nalign1 92 # CHECK: Size: 16 93 # CHECK: AddressAlignment: 16 94 # CHECK-LABEL: } 95 # CHECK-LABEL: Name: .nalign2 96 # CHECK: Size: 8 97 # CHECK: AddressAlignment: 8 98 # CHECK-LABEL: } 99 # CHECK-LABEL: Name: .nalign3 100 # CHECK: Size: 8 101 # CHECK: AddressAlignment: 8 102 # CHECK-LABEL: } 103 # CHECK-LABEL: Name: .nalign4 104 # CHECK: Size: 1 105 # CHECK: AddressAlignment: 1 106 # CHECK-LABEL: } 107