• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1; RUN: llc -mcpu=pwr8 -mtriple=powerpc-unknown-unknown < %s | FileCheck %s
2define i32 @test(<4 x i32> %v, i32 %elem) #0 {
3entry:
4  %vecext = extractelement <4 x i32> %v, i32 %elem
5  ret i32 %vecext
6}
7; CHECK: stxvw4x 34,
8; CHECK: lwzx 3,
9
10define float @test2(i32 signext %a) {
11entry:
12  %conv = bitcast i32 %a to float
13  ret float %conv
14}
15; CHECK-NOT: mtvsr
16