29 lines · plain
1; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py2; RUN: llc -verify-machineinstrs -csky-no-aliases -mattr=+e2 < %s -mtriple=csky | FileCheck %s3 4define i32 @ROTLI32(i32 %x) {5; CHECK-LABEL: ROTLI32:6; CHECK: # %bb.0: # %entry7; CHECK-NEXT: rotli32 a0, a0, 48; CHECK-NEXT: rts169entry:10 %shl = shl i32 %x, 411 %shr = lshr i32 %x, 2812 %or = or i32 %shl, %shr13 ret i32 %or14}15 16define i32 @ROTL32(i32 %x, i32 %y) {17; CHECK-LABEL: ROTL32:18; CHECK: # %bb.0: # %entry19; CHECK-NEXT: andi32 a1, a1, 3120; CHECK-NEXT: rotl16 a0, a121; CHECK-NEXT: rts1622entry:23 %0 = shl i32 %x, %y24 %1 = sub i32 32, %y25 %2 = lshr i32 %x, %126 %3 = or i32 %2, %027 ret i32 %328}29