Home | History | Annotate | Download | only in PowerPC
      1 ; RUN: llc -mtriple=powerpc64le-unknown-linux-gnu -mcpu=pwr8 -mattr=+vsx < %s | FileCheck %s --implicit-check-not lxsiwzx
      2 
      3 declare void @bar(double)
      4 
      5 define void @foo1(i8* %p) {
      6 entry:
      7   %0 = load i8, i8* %p, align 1
      8   %conv = uitofp i8 %0 to double
      9   call void @bar(double %conv)
     10   ret void
     11 
     12 ; CHECK-LABEL: @foo1
     13 ; CHECK:     mtvsrwz
     14 }
     15 
     16 define void @foo2(i16* %p) {
     17 entry:
     18   %0 = load i16, i16* %p, align 2
     19   %conv = uitofp i16 %0 to double
     20   call void @bar(double %conv)
     21   ret void
     22 
     23 ; CHECK-LABEL: @foo2
     24 ; CHECK:       mtvsrwz
     25 }
     26 
     27