2015-03-31 13:35:12 +00:00
|
|
|
; RUN: llc -march=hexagon -hexagon-expand-condsets=0 < %s | FileCheck %s
|
2013-03-05 19:04:47 +00:00
|
|
|
|
2015-04-13 17:47:15 +00:00
|
|
|
; CHECK: r{{[0-9]+:[0-9]+}} = #1
|
2015-04-22 21:17:00 +00:00
|
|
|
; CHECK: r{{[0-9]+:[0-9]+}} = #0
|
2015-04-13 15:32:01 +00:00
|
|
|
; CHECK: r{{[0-9]+:[0-9]+}} = add(r{{[0-9]+:[0-9]+}}, r{{[0-9]+:[0-9]+}})
|
2013-03-05 19:04:47 +00:00
|
|
|
; CHECK: p{{[0-9]+}} = cmp.gtu(r{{[0-9]+:[0-9]+}}, r{{[0-9]+:[0-9]+}})
|
2015-04-13 17:47:15 +00:00
|
|
|
; CHECK: p{{[0-9]+}} = cmp.gtu(r{{[0-9]+:[0-9]+}}, r{{[0-9]+:[0-9]+}})
|
|
|
|
; CHECK: r{{[0-9]+}} = mux(p{{[0-9]+}}, r{{[0-9]+}}, r{{[0-9]+}})
|
|
|
|
; CHECK: r{{[0-9]+}} = mux(p{{[0-9]+}}, r{{[0-9]+}}, r{{[0-9]+}})
|
|
|
|
; CHECK: r{{[0-9]+:[0-9]+}} = combine(r{{[0-9]+}}, r{{[0-9]+}})
|
|
|
|
; CHECK: r{{[0-9]+}} = mux(p{{[0-9]+}}, r{{[0-9]+}}, r{{[0-9]+}})
|
|
|
|
; CHECK: r{{[0-9]+}} = mux(p{{[0-9]+}}, r{{[0-9]+}}, r{{[0-9]+}})
|
|
|
|
; CHECK: r{{[0-9]+:[0-9]+}} = combine(r{{[0-9]+}}, r{{[0-9]+}})
|
2013-03-05 19:04:47 +00:00
|
|
|
; CHECK: r{{[0-9]+:[0-9]+}} = add(r{{[0-9]+:[0-9]+}}, r{{[0-9]+:[0-9]+}})
|
|
|
|
|
|
|
|
|
|
|
|
define void @check_adde_addc (i64 %AL, i64 %AH, i64 %BL, i64 %BH, i64* %RL, i64* %RH) {
|
|
|
|
entry:
|
|
|
|
%tmp1 = zext i64 %AL to i128
|
|
|
|
%tmp23 = zext i64 %AH to i128
|
|
|
|
%tmp4 = shl i128 %tmp23, 64
|
|
|
|
%tmp5 = or i128 %tmp4, %tmp1
|
|
|
|
%tmp67 = zext i64 %BL to i128
|
|
|
|
%tmp89 = zext i64 %BH to i128
|
|
|
|
%tmp11 = shl i128 %tmp89, 64
|
|
|
|
%tmp12 = or i128 %tmp11, %tmp67
|
|
|
|
%tmp15 = add i128 %tmp12, %tmp5
|
|
|
|
%tmp1617 = trunc i128 %tmp15 to i64
|
|
|
|
store i64 %tmp1617, i64* %RL
|
|
|
|
%tmp21 = lshr i128 %tmp15, 64
|
|
|
|
%tmp2122 = trunc i128 %tmp21 to i64
|
|
|
|
store i64 %tmp2122, i64* %RH
|
|
|
|
ret void
|
2013-07-13 20:38:47 +00:00
|
|
|
}
|