Home | History | Annotate | Download | only in PowerPC
      1 ; RUN: llc -march=ppc64 %s -o - | FileCheck %s
      2 
      3 ; These tests just check that the plumbing is in place for @llvm.bitreverse. The
      4 ; actual output is massive at the moment as llvm.bitreverse is not yet legal.
      5 
      6 declare <2 x i16> @llvm.bitreverse.v2i16(<2 x i16>) readnone
      7 
      8 define <2 x i16> @f(<2 x i16> %a) {
      9 ; CHECK-LABEL: f:
     10 ; CHECK: rlwinm
     11   %b = call <2 x i16> @llvm.bitreverse.v2i16(<2 x i16> %a)
     12   ret <2 x i16> %b
     13 }
     14 
     15 declare i8 @llvm.bitreverse.i8(i8) readnone
     16 
     17 define i8 @g(i8 %a) {
     18 ; CHECK-LABEL: g:
     19 ; CHECK: rlwinm
     20 ; CHECK: rlwimi
     21   %b = call i8 @llvm.bitreverse.i8(i8 %a)
     22   ret i8 %b
     23 }
     24