• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1; RUN: llc -march=ppc32 -mcpu=ppc32 -mtriple=powerpc-unknown-linux-gnu < %s | FileCheck %s
2define double @test(i1 %X) {
3        %Y = uitofp i1 %X to double
4        ret double %Y
5}
6
7; CHECK-LABEL: @test
8
9; CHECK: andi. {{[0-9]+}}, 3, 1
10; CHECK: bc 12, 1,
11
12; CHECK: li 3, .LCP[[L1:[A-Z0-9_]+]]@l
13; CHECK: addis 3, 3, .LCP[[L1]]@ha
14; CHECK: lfs 1, 0(3)
15; CHECK: blr
16
17; CHECK: li 3, .LCP[[L2:[A-Z0-9_]+]]@l
18; CHECK: addis 3, 3, .LCP[[L2]]@ha
19; CHECK: lfs 1, 0(3)
20; CHECK: blr
21
22