21 lines · plain
1; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py UTC_ARGS: --version 52; RUN: llc -mtriple=armv7-unknown-linux-gnueabihf < %s | FileCheck %s3 4; Check for assertion when extractelement of load optimization5; involves a result element type different from the input vector6; element type.7 8define i8 @baz(ptr %ptr, i32 %arg) {9; CHECK-LABEL: baz:10; CHECK: @ %bb.0: @ %bb11; CHECK-NEXT: add r1, r1, r112; CHECK-NEXT: and r1, r1, #313; CHECK-NEXT: ldr r0, [r0, r1, lsl #2]14; CHECK-NEXT: bx lr15bb:16 %load = load <2 x i64>, ptr %ptr, align 817 %extractelement = extractelement <2 x i64> %load, i32 %arg18 %trunc = trunc i64 %extractelement to i819 ret i8 %trunc20}21