brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.3 KiB · 9e1e9f6 Raw
42 lines · plain
1; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py UTC_ARGS: --version 52; RUN: llc -mtriple=arm-eabi -mattr=+v5t %s -o - | FileCheck %s -check-prefixes=CHECK,INLINE3; RUN: llc -mtriple=arm-eabi %s -o - | FileCheck %s -check-prefixes=CHECK,LIBCALL4 5declare i32 @llvm.ctlz.i32(i32, i1)6 7define i32 @undef_zero(i32 %x) {8; INLINE-LABEL: undef_zero:9; INLINE:       @ %bb.0:10; INLINE-NEXT:    clz r0, r011; INLINE-NEXT:    bx lr12;13; LIBCALL-LABEL: undef_zero:14; LIBCALL:       @ %bb.0:15; LIBCALL-NEXT:    b __clzsi216        %tmp.1 = call i32 @llvm.ctlz.i32( i32 %x, i1 true )17        ret i32 %tmp.118}19 20define i32 @no_undef_zero(i32 %x) {21; INLINE-LABEL: no_undef_zero:22; INLINE:       @ %bb.0:23; INLINE-NEXT:    clz r0, r024; INLINE-NEXT:    bx lr25;26; LIBCALL-LABEL: no_undef_zero:27; LIBCALL:       @ %bb.0:28; LIBCALL-NEXT:    cmp r0, #029; LIBCALL-NEXT:    moveq r0, #3230; LIBCALL-NEXT:    moveq pc, lr31; LIBCALL-NEXT:  .LBB1_1: @ %cond.false32; LIBCALL-NEXT:    .save {r11, lr}33; LIBCALL-NEXT:    push {r11, lr}34; LIBCALL-NEXT:    bl __clzsi235; LIBCALL-NEXT:    pop {r11, lr}36; LIBCALL-NEXT:    mov pc, lr37        %tmp.1 = call i32 @llvm.ctlz.i32( i32 %x, i1 false )38        ret i32 %tmp.139}40;; NOTE: These prefixes are unused and the list is autogenerated. Do not add tests below this line:41; CHECK: {{.*}}42