1 ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
2 ; RUN: llc -verify-machineinstrs -csky-no-aliases -mattr=+e2 < %s -mtriple=csky | FileCheck %s
4 define i32 @ROTLI32(i32 %x) {
5 ; CHECK-LABEL: ROTLI32:
6 ; CHECK: # %bb.0: # %entry
7 ; CHECK-NEXT: rotli32 a0, a0, 4
11 %shr = lshr i32 %x, 28
12 %or = or i32 %shl, %shr
16 define i32 @ROTL32(i32 %x, i32 %y) {
17 ; CHECK-LABEL: ROTL32:
18 ; CHECK: # %bb.0: # %entry
19 ; CHECK-NEXT: andi32 a1, a1, 31
20 ; CHECK-NEXT: rotl16 a0, a1