OLD | NEW |
1 target triple = "i686-pc-linux-gnu" | |
2 | |
3 define i32 @_Z4castIxbET0_T_(i64 %a) { | 1 define i32 @_Z4castIxbET0_T_(i64 %a) { |
4 entry: | 2 entry: |
5 ; %tobool = icmp ne i64 %a, 0 | 3 ; %tobool = icmp ne i64 %a, 0 |
6 %tobool = trunc i64 %a to i1 | 4 %tobool = trunc i64 %a to i1 |
7 %tobool.ret_ext = zext i1 %tobool to i32 | 5 %tobool.ret_ext = zext i1 %tobool to i32 |
8 ret i32 %tobool.ret_ext | 6 ret i32 %tobool.ret_ext |
9 } | 7 } |
10 | 8 |
11 define i32 @_Z4castIybET0_T_(i64 %a) { | 9 define i32 @_Z4castIybET0_T_(i64 %a) { |
12 entry: | 10 entry: |
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
83 ret i32 %tobool.ret_ext | 81 ret i32 %tobool.ret_ext |
84 } | 82 } |
85 | 83 |
86 define i32 @_Z4castIfbET0_T_(float %a) { | 84 define i32 @_Z4castIfbET0_T_(float %a) { |
87 entry: | 85 entry: |
88 ; %tobool = fcmp une float %a, 0.000000e+00 | 86 ; %tobool = fcmp une float %a, 0.000000e+00 |
89 %tobool = fptoui float %a to i1 | 87 %tobool = fptoui float %a to i1 |
90 %tobool.ret_ext = zext i1 %tobool to i32 | 88 %tobool.ret_ext = zext i1 %tobool to i32 |
91 ret i32 %tobool.ret_ext | 89 ret i32 %tobool.ret_ext |
92 } | 90 } |
OLD | NEW |