| Devang Patel | 801b8ea | 2010-05-04 01:05:02 +0000 | [diff] [blame] | 1 | |
| Manman Ren | ed696c3 | 2013-07-24 22:23:00 +0000 | [diff] [blame] | 2 | ;RUN: llc < %s -o /dev/null |
| Devang Patel | 801b8ea | 2010-05-04 01:05:02 +0000 | [diff] [blame] | 3 | ;Radar 7937109 |
| 4 | |
| 5 | %struct.anon = type { i64, i32, i32, i32, [1 x i32] } |
| 6 | %struct.gpm_t = type { i32, i8*, [16 x i8], i32, i64, i64, i64, i64, i64, i64, i32, i16, i16, [8 x %struct.gpmr_t] } |
| 7 | %struct.gpmr_t = type { [48 x i8], [48 x i8], [16 x i8], i64, i64, i64, i64, i16 } |
| 8 | %struct.gpt_t = type { [8 x i8], i32, i32, i32, i32, i64, i64, i64, i64, [16 x i8], %struct.anon } |
| 9 | |
| 10 | @llvm.used = appending global [1 x i8*] [i8* bitcast (void (%struct.gpm_t*, %struct.gpt_t*)* @gpt2gpm to i8*)], section "llvm.metadata" ; <[1 x i8*]*> [#uses=0] |
| 11 | |
| 12 | define fastcc void @gpt2gpm(%struct.gpm_t* %gpm, %struct.gpt_t* %gpt) nounwind optsize ssp { |
| 13 | entry: |
| 14 | %data_addr.i18 = alloca i64, align 8 ; <i64*> [#uses=1] |
| 15 | %data_addr.i17 = alloca i64, align 8 ; <i64*> [#uses=2] |
| 16 | %data_addr.i16 = alloca i64, align 8 ; <i64*> [#uses=0] |
| 17 | %data_addr.i15 = alloca i32, align 4 ; <i32*> [#uses=0] |
| 18 | %data_addr.i = alloca i64, align 8 ; <i64*> [#uses=0] |
| David Blaikie | 79e6c74 | 2015-02-27 19:29:02 +0000 | [diff] [blame^] | 19 | %0 = getelementptr inbounds %struct.gpm_t, %struct.gpm_t* %gpm, i32 0, i32 2, i32 0 ; <i8*> [#uses=1] |
| 20 | %1 = getelementptr inbounds %struct.gpt_t, %struct.gpt_t* %gpt, i32 0, i32 9, i32 0 ; <i8*> [#uses=1] |
| Devang Patel | 801b8ea | 2010-05-04 01:05:02 +0000 | [diff] [blame] | 21 | call void @uuid_LtoB(i8* %0, i8* %1) nounwind, !dbg !0 |
| Chris Lattner | 6a144a2 | 2011-11-27 06:54:59 +0000 | [diff] [blame] | 22 | %a9 = load volatile i64* %data_addr.i18, align 8 ; <i64> [#uses=1] |
| Devang Patel | 801b8ea | 2010-05-04 01:05:02 +0000 | [diff] [blame] | 23 | %a10 = call i64 @llvm.bswap.i64(i64 %a9) nounwind ; <i64> [#uses=1] |
| David Blaikie | 79e6c74 | 2015-02-27 19:29:02 +0000 | [diff] [blame^] | 24 | %a11 = getelementptr inbounds %struct.gpt_t, %struct.gpt_t* %gpt, i32 0, i32 8, !dbg !7 ; <i64*> [#uses=1] |
| Devang Patel | 801b8ea | 2010-05-04 01:05:02 +0000 | [diff] [blame] | 25 | %a12 = load i64* %a11, align 4, !dbg !7 ; <i64> [#uses=1] |
| Duncan P. N. Exon Smith | be7ea19 | 2014-12-15 19:07:53 +0000 | [diff] [blame] | 26 | call void @llvm.dbg.declare(metadata i64* %data_addr.i17, metadata !8, metadata !{!"0x102"}) nounwind, !dbg !14 |
| Devang Patel | 801b8ea | 2010-05-04 01:05:02 +0000 | [diff] [blame] | 27 | store i64 %a12, i64* %data_addr.i17, align 8 |
| Duncan P. N. Exon Smith | be7ea19 | 2014-12-15 19:07:53 +0000 | [diff] [blame] | 28 | call void @llvm.dbg.value(metadata !6, i64 0, metadata !15, metadata !{!"0x102"}) nounwind |
| 29 | call void @llvm.dbg.value(metadata i32 0, i64 0, metadata !19, metadata !{!"0x102"}) nounwind |
| 30 | call void @llvm.dbg.declare(metadata !6, metadata !23, metadata !{!"0x102"}) nounwind |
| 31 | call void @llvm.dbg.value(metadata i64* %data_addr.i17, i64 0, metadata !34, metadata !{!"0x102"}) nounwind |
| Chris Lattner | 6a144a2 | 2011-11-27 06:54:59 +0000 | [diff] [blame] | 32 | %a13 = load volatile i64* %data_addr.i17, align 8 ; <i64> [#uses=1] |
| Devang Patel | 801b8ea | 2010-05-04 01:05:02 +0000 | [diff] [blame] | 33 | %a14 = call i64 @llvm.bswap.i64(i64 %a13) nounwind ; <i64> [#uses=2] |
| 34 | %a15 = add i64 %a10, %a14, !dbg !7 ; <i64> [#uses=1] |
| 35 | %a16 = sub i64 %a15, %a14 ; <i64> [#uses=1] |
| David Blaikie | 79e6c74 | 2015-02-27 19:29:02 +0000 | [diff] [blame^] | 36 | %a17 = getelementptr inbounds %struct.gpm_t, %struct.gpm_t* %gpm, i32 0, i32 5, !dbg !7 ; <i64*> [#uses=1] |
| Devang Patel | 801b8ea | 2010-05-04 01:05:02 +0000 | [diff] [blame] | 37 | store i64 %a16, i64* %a17, align 4, !dbg !7 |
| 38 | ret void, !dbg !7 |
| 39 | } |
| 40 | |
| Adrian Prantl | 87b7eb9 | 2014-10-01 18:55:02 +0000 | [diff] [blame] | 41 | declare void @llvm.dbg.declare(metadata, metadata, metadata) nounwind readnone |
| Devang Patel | 801b8ea | 2010-05-04 01:05:02 +0000 | [diff] [blame] | 42 | |
| Adrian Prantl | 87b7eb9 | 2014-10-01 18:55:02 +0000 | [diff] [blame] | 43 | declare void @llvm.dbg.value(metadata, i64, metadata, metadata) nounwind readnone |
| Devang Patel | 801b8ea | 2010-05-04 01:05:02 +0000 | [diff] [blame] | 44 | |
| 45 | declare i32 @llvm.bswap.i32(i32) nounwind readnone |
| 46 | |
| 47 | declare i64 @llvm.bswap.i64(i64) nounwind readnone |
| 48 | |
| 49 | declare void @uuid_LtoB(i8*, i8*) |
| 50 | |
| Manman Ren | e9a52e1 | 2013-07-29 18:12:58 +0000 | [diff] [blame] | 51 | !llvm.dbg.cu = !{!4} |
| Manman Ren | 409558f | 2013-11-22 21:49:45 +0000 | [diff] [blame] | 52 | !llvm.module.flags = !{!41} |
| Duncan P. N. Exon Smith | 9885469 | 2015-01-14 22:27:36 +0000 | [diff] [blame] | 53 | !0 = !MDLocation(line: 808, scope: !1) |
| Duncan P. N. Exon Smith | be7ea19 | 2014-12-15 19:07:53 +0000 | [diff] [blame] | 54 | !1 = !{!"0xb\00807\000\000", !39, !2} ; [ DW_TAG_lexical_block ] |
| 55 | !2 = !{!"0x2e\00gpt2gpm\00gpt2gpm\00gpt2gpm\00807\001\001\000\006\000\000\000", !39, null, !5, null, null, null, null, null} ; [ DW_TAG_subprogram ] |
| 56 | !3 = !{!"0x29", !39} ; [ DW_TAG_file_type ] |
| 57 | !4 = !{!"0x11\001\00llvm-gcc\001\00\000\00\000", !39, !18, !18, !40, null, null} ; [ DW_TAG_compile_unit ] |
| 58 | !5 = !{!"0x15\00\000\000\000\000\000\000", !39, !3, null, !6, null, null, null} ; [ DW_TAG_subroutine_type ] [line 0, size 0, align 0, offset 0] [from ] |
| 59 | !6 = !{null} |
| Duncan P. N. Exon Smith | 9885469 | 2015-01-14 22:27:36 +0000 | [diff] [blame] | 60 | !7 = !MDLocation(line: 810, scope: !1) |
| Duncan P. N. Exon Smith | be7ea19 | 2014-12-15 19:07:53 +0000 | [diff] [blame] | 61 | !8 = !{!"0x101\00data\00201\000", !9, !10, !11} ; [ DW_TAG_arg_variable ] |
| 62 | !9 = !{!"0x2e\00_OSSwapInt64\00_OSSwapInt64\00_OSSwapInt64\00202\001\001\000\006\000\000\000", !10, null, !5, null, null, null, null, null} ; [ DW_TAG_subprogram ] |
| 63 | !10 = !{!"0x29", !"OSByteOrder.h", !"/usr/include/libkern/ppc", !4} ; [ DW_TAG_file_type ] |
| 64 | !11 = !{!"0x16\00uint64_t\0059\000\000\000\000", !36, !3, !13} ; [ DW_TAG_typedef ] |
| 65 | !12 = !{!"0x29", !"stdint.h", !"/usr/4.2.1/include", !4} ; [ DW_TAG_file_type ] |
| 66 | !13 = !{!"0x24\00long long unsigned int\000\0064\0064\000\000\007", !39, !3} ; [ DW_TAG_base_type ] |
| Duncan P. N. Exon Smith | 9885469 | 2015-01-14 22:27:36 +0000 | [diff] [blame] | 67 | !14 = !MDLocation(line: 202, scope: !9, inlinedAt: !7) |
| Duncan P. N. Exon Smith | be7ea19 | 2014-12-15 19:07:53 +0000 | [diff] [blame] | 68 | !15 = !{!"0x101\00base\0092\000", !16, !10, !17} ; [ DW_TAG_arg_variable ] |
| 69 | !16 = !{!"0x2e\00OSReadSwapInt64\00OSReadSwapInt64\00OSReadSwapInt64\0095\001\001\000\006\000\000\000", !38, null, !5, null, null, null, null, null} ; [ DW_TAG_subprogram ] |
| 70 | !17 = !{!"0xf\00\000\0032\0032\000\000", !39, !3, null} ; [ DW_TAG_pointer_type ] |
| 71 | !18 = !{i32 0} |
| 72 | !19 = !{!"0x101\00byteOffset\0094\000", !16, !10, !20} ; [ DW_TAG_arg_variable ] |
| 73 | !20 = !{!"0x16\00uintptr_t\00114\000\000\000\000", !37, !3, !22} ; [ DW_TAG_typedef ] |
| 74 | !21 = !{!"0x29", !"types.h", !"/usr/include/ppc", !4} ; [ DW_TAG_file_type ] |
| 75 | !22 = !{!"0x24\00long unsigned int\000\0032\0032\000\000\007", !39, !3} ; [ DW_TAG_base_type ] |
| 76 | !23 = !{!"0x100\00u\00100\000", !24, !10, !25} ; [ DW_TAG_auto_variable ] |
| 77 | !24 = !{!"0xb\0095\000\000", !38, !16} ; [ DW_TAG_lexical_block ] |
| 78 | !25 = !{!"0x17\00\0097\0064\0064\000\000\000", !38, !16, null, !26, null, null, null} ; [ DW_TAG_union_type ] [line 97, size 64, align 64, offset 0] [def] [from ] |
| 79 | !26 = !{!27, !28} |
| 80 | !27 = !{!"0xd\00u64\0098\0064\0064\000\000", !38, !25, !11} ; [ DW_TAG_member ] |
| 81 | !28 = !{!"0xd\00u32\0099\0064\0032\000\000", !38, !25, !29} ; [ DW_TAG_member ] |
| 82 | !29 = !{!"0x1\00\000\0064\0032\000\000", !39, !3, !30, !32, i32 0, null, null, null} ; [ DW_TAG_array_type ] [line 0, size 64, align 32, offset 0] [from uint32_t] |
| 83 | !30 = !{!"0x16\00uint32_t\0055\000\000\000\000", !36, !3, !31} ; [ DW_TAG_typedef ] |
| 84 | !31 = !{!"0x24\00unsigned int\000\0032\0032\000\000\007", !39, !3} ; [ DW_TAG_base_type ] |
| 85 | !32 = !{!33} |
| 86 | !33 = !{!"0x21\000\002"} ; [ DW_TAG_subrange_type ] |
| 87 | !34 = !{!"0x100\00addr\0096\000", !24, !10, !35} ; [ DW_TAG_auto_variable ] |
| 88 | !35 = !{!"0xf\00\000\0032\0032\000\000", !39, !3, !11} ; [ DW_TAG_pointer_type ] |
| 89 | !36 = !{!"stdint.h", !"/usr/4.2.1/include"} |
| 90 | !37 = !{!"types.h", !"/usr/include/ppc"} |
| 91 | !38 = !{!"OSByteOrder.h", !"/usr/include/libkern/ppc"} |
| 92 | !39 = !{!"G.c", !"/tmp"} |
| 93 | !40 = !{!2, !9, !16} |
| 94 | !41 = !{i32 1, !"Debug Info Version", i32 2} |