blob: d8a3d931419d84fa73ea0a8ee0a89246c653f191 [file] [log] [blame]
Petr Hosek12903552016-09-20 20:21:13 +00001; RUN: llc -mtriple x86_64-pc-linux < %s | FileCheck %s
2
3%struct.note = type { %struct.Elf32_Nhdr, [7 x i8], %struct.payload }
4%struct.Elf32_Nhdr = type { i32, i32, i32 }
5%struct.payload = type { i16 }
6
7@foonote = internal constant %struct.note { %struct.Elf32_Nhdr { i32 7, i32 2, i32 17 }, [7 x i8] c"foobar\00", %struct.payload { i16 23 } }, section ".note.foo", align 4
8
9; CHECK: .section .note.foo,"a",@note
10; CHECK-NEXT: .p2align 2
11; CHECK-NEXT: foonote:
12; CHECK-NEXT: .long 7
13; CHECK-NEXT: .long 2
14; CHECK-NEXT: .long 17
15; CHECK-NEXT: .asciz "foobar"
16; CHECK-NEXT: .zero 1
17; CHECK-NEXT: .short 23
18; CHECK-NEXT: .zero 2
19; CHECK-NEXT: .size foonote, 24