Devang Patel | 4ec14b0 | 2011-07-20 21:57:04 +0000 | [diff] [blame] | 1 | ; RUN: llc -filetype=obj %s -o /dev/null |
| 2 | ; Hanle large unsigned constant values. |
| 3 | target datalayout = "e-p:32:32:32-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:32:64-f32:32:32-f64:32:64-v64:64:64-v128:128:128-a0:0:64-f80:128:128-n8:16:32" |
| 4 | target triple = "i386-apple-macosx10.7.0" |
| 5 | |
| 6 | define zeroext i1 @_Z3iseRKxS0_(i64* nocapture %LHS, i64* nocapture %RHS) nounwind readonly optsize ssp { |
| 7 | entry: |
| 8 | tail call void @llvm.dbg.value(metadata !{i64* %LHS}, i64 0, metadata !7), !dbg !13 |
| 9 | tail call void @llvm.dbg.value(metadata !{i64* %RHS}, i64 0, metadata !11), !dbg !14 |
Manman Ren | 2dc50d3 | 2013-04-30 17:52:57 +0000 | [diff] [blame^] | 10 | %tmp1 = load i64* %LHS, align 4, !dbg !15 |
| 11 | %tmp3 = load i64* %RHS, align 4, !dbg !15 |
Devang Patel | 4ec14b0 | 2011-07-20 21:57:04 +0000 | [diff] [blame] | 12 | %cmp = icmp eq i64 %tmp1, %tmp3, !dbg !15 |
| 13 | ret i1 %cmp, !dbg !15 |
| 14 | } |
| 15 | |
| 16 | define zeroext i1 @_Z2fnx(i64 %a) nounwind readnone optsize ssp { |
| 17 | entry: |
| 18 | tail call void @llvm.dbg.value(metadata !{i64 %a}, i64 0, metadata !12), !dbg !20 |
| 19 | tail call void @llvm.dbg.value(metadata !{i64 %a}, i64 0, metadata !12), !dbg !20 |
| 20 | tail call void @llvm.dbg.value(metadata !{i64 %a}, i64 0, metadata !21), !dbg !24 |
| 21 | tail call void @llvm.dbg.value(metadata !25, i64 0, metadata !26), !dbg !27 |
| 22 | %cmp.i = icmp eq i64 %a, 9223372036854775807, !dbg !28 |
| 23 | ret i1 %cmp.i, !dbg !22 |
| 24 | } |
| 25 | |
| 26 | declare void @llvm.dbg.value(metadata, i64, metadata) nounwind readnone |
| 27 | |
| 28 | !llvm.dbg.cu = !{!0} |
David Blaikie | d7e0de5 | 2013-03-08 00:23:31 +0000 | [diff] [blame] | 29 | !29 = metadata !{metadata !1, metadata !6} |
| 30 | !30 = metadata !{metadata !7, metadata !11} |
| 31 | !31 = metadata !{metadata !12} |
Devang Patel | 4ec14b0 | 2011-07-20 21:57:04 +0000 | [diff] [blame] | 32 | |
David Blaikie | 72dfb05 | 2013-03-28 02:44:59 +0000 | [diff] [blame] | 33 | !0 = metadata !{i32 786449, i32 4, metadata !2, metadata !"clang version 3.0 (trunk 135593)", i1 true, metadata !"", i32 0, null, null, metadata !29, null, metadata !""} ; [ DW_TAG_compile_unit ] |
| 34 | !1 = metadata !{i32 786478, metadata !"_Z3iseRKxS0_", i32 0, metadata !2, metadata !"ise", metadata !"ise", metadata !2, i32 2, metadata !3, i1 false, i1 true, i32 0, i32 0, i32 0, i32 256, i1 true, i1 (i64*, i64*)* @_Z3iseRKxS0_, null, null, metadata !30, i32 2} ; [ DW_TAG_subprogram ] |
| 35 | !2 = metadata !{i32 786473, metadata !"lli.cc", metadata !"/private/tmp", metadata !0} ; [ DW_TAG_file_type ] |
| 36 | !3 = metadata !{i32 786453, metadata !2, metadata !"", metadata !2, i32 0, i64 0, i64 0, i32 0, i32 0, i32 0, metadata !4, i32 0, i32 0} ; [ DW_TAG_subroutine_type ] |
Devang Patel | 4ec14b0 | 2011-07-20 21:57:04 +0000 | [diff] [blame] | 37 | !4 = metadata !{metadata !5} |
David Blaikie | 72dfb05 | 2013-03-28 02:44:59 +0000 | [diff] [blame] | 38 | !5 = metadata !{i32 786468, metadata !0, metadata !"bool", null, i32 0, i64 8, i64 8, i64 0, i32 0, i32 2} ; [ DW_TAG_base_type ] |
| 39 | !6 = metadata !{i32 786478, metadata !"_Z2fnx", i32 0, metadata !2, metadata !"fn", metadata !"fn", metadata !2, i32 6, metadata !3, i1 false, i1 true, i32 0, i32 0, i32 0, i32 256, i1 true, i1 (i64)* @_Z2fnx, null, null, metadata !31, i32 6} ; [ DW_TAG_subprogram ] |
David Blaikie | d7e0de5 | 2013-03-08 00:23:31 +0000 | [diff] [blame] | 40 | !7 = metadata !{i32 786689, metadata !1, metadata !"LHS", metadata !2, i32 16777218, metadata !8, i32 0, i32 0} ; [ DW_TAG_arg_variable ] |
David Blaikie | 72dfb05 | 2013-03-28 02:44:59 +0000 | [diff] [blame] | 41 | !8 = metadata !{i32 786448, metadata !0, null, null, i32 0, i64 32, i64 32, i64 0, i32 0, metadata !9} ; [ DW_TAG_reference_type ] |
| 42 | !9 = metadata !{i32 786470, metadata !0, metadata !"", null, i32 0, i64 0, i64 0, i64 0, i32 0, metadata !10} ; [ DW_TAG_const_type ] |
| 43 | !10 = metadata !{i32 786468, metadata !0, metadata !"long long int", null, i32 0, i64 64, i64 32, i64 0, i32 0, i32 5} ; [ DW_TAG_base_type ] |
David Blaikie | d7e0de5 | 2013-03-08 00:23:31 +0000 | [diff] [blame] | 44 | !11 = metadata !{i32 786689, metadata !1, metadata !"RHS", metadata !2, i32 33554434, metadata !8, i32 0, i32 0} ; [ DW_TAG_arg_variable ] |
| 45 | !12 = metadata !{i32 786689, metadata !6, metadata !"a", metadata !2, i32 16777222, metadata !10, i32 0, i32 0} ; [ DW_TAG_arg_variable ] |
Devang Patel | 4ec14b0 | 2011-07-20 21:57:04 +0000 | [diff] [blame] | 46 | !13 = metadata !{i32 2, i32 27, metadata !1, null} |
| 47 | !14 = metadata !{i32 2, i32 49, metadata !1, null} |
| 48 | !15 = metadata !{i32 3, i32 3, metadata !16, null} |
David Blaikie | 72dfb05 | 2013-03-28 02:44:59 +0000 | [diff] [blame] | 49 | !16 = metadata !{i32 786443, metadata !2, metadata !1, i32 2, i32 54, i32 0} ; [ DW_TAG_lexical_block ] |
Devang Patel | 4ec14b0 | 2011-07-20 21:57:04 +0000 | [diff] [blame] | 50 | !20 = metadata !{i32 6, i32 19, metadata !6, null} |
David Blaikie | d7e0de5 | 2013-03-08 00:23:31 +0000 | [diff] [blame] | 51 | !21 = metadata !{i32 786689, metadata !1, metadata !"LHS", metadata !2, i32 16777218, metadata !8, i32 0, metadata !22} ; [ DW_TAG_arg_variable ] |
Devang Patel | 4ec14b0 | 2011-07-20 21:57:04 +0000 | [diff] [blame] | 52 | !22 = metadata !{i32 7, i32 10, metadata !23, null} |
David Blaikie | 72dfb05 | 2013-03-28 02:44:59 +0000 | [diff] [blame] | 53 | !23 = metadata !{i32 786443, metadata !2, metadata !6, i32 6, i32 22, i32 1} ; [ DW_TAG_lexical_block ] |
Devang Patel | 4ec14b0 | 2011-07-20 21:57:04 +0000 | [diff] [blame] | 54 | !24 = metadata !{i32 2, i32 27, metadata !1, metadata !22} |
| 55 | !25 = metadata !{i64 9223372036854775807} |
David Blaikie | d7e0de5 | 2013-03-08 00:23:31 +0000 | [diff] [blame] | 56 | !26 = metadata !{i32 786689, metadata !1, metadata !"RHS", metadata !2, i32 33554434, metadata !8, i32 0, metadata !22} ; [ DW_TAG_arg_variable ] |
Devang Patel | 4ec14b0 | 2011-07-20 21:57:04 +0000 | [diff] [blame] | 57 | !27 = metadata !{i32 2, i32 49, metadata !1, metadata !22} |
| 58 | !28 = metadata !{i32 3, i32 3, metadata !16, metadata !22} |