fix an embarassing typo that resulted in llvm-gcc bootstrap miscompare
[llvm/avr.git] / test / CodeGen / Alpha / 2008-11-10-smul_lohi.ll
blob1a4b40e2da2c8e26249706ee05a25bc7f7101298
1 ; RUN: llc < %s -march=alpha
3 target datalayout = "e-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:32:64-f32:32:32-f64:64:64-v64:64:64-v128:128:128-a0:0:64-f128:128:128"
4 target triple = "alphaev6-unknown-linux-gnu"
6 define i64 @__mulvdi3(i64 %a, i64 %b) nounwind {
7 entry:
8         %0 = sext i64 %a to i128                ; <i128> [#uses=1]
9         %1 = sext i64 %b to i128                ; <i128> [#uses=1]
10         %2 = mul i128 %1, %0            ; <i128> [#uses=2]
11         %3 = lshr i128 %2, 64           ; <i128> [#uses=1]
12         %4 = trunc i128 %3 to i64               ; <i64> [#uses=1]
13         %5 = trunc i128 %2 to i64               ; <i64> [#uses=1]
14         %6 = icmp eq i64 %4, 0          ; <i1> [#uses=1]
15         br i1 %6, label %bb1, label %bb
17 bb:             ; preds = %entry
18         unreachable
20 bb1:            ; preds = %entry
21         ret i64 %5