brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.1 KiB · d745cd6 Raw
41 lines · plain
1; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py UTC_ARGS: --version 32; RUN: llc --mtriple=loongarch32 -mattr=+d -verify-machineinstrs < %s \3; RUN:   | FileCheck %s --check-prefix=LA324; RUN: llc --mtriple=loongarch64 -mattr=+d -verify-machineinstrs < %s \5; RUN:   | FileCheck %s --check-prefix=LA646 7define zeroext i8 @test_zext_i8(ptr %p) nounwind {8; LA32-LABEL: test_zext_i8:9; LA32:       # %bb.0:10; LA32-NEXT:    ld.bu $a0, $a0, 011; LA32-NEXT:    ret12;13; LA64-LABEL: test_zext_i8:14; LA64:       # %bb.0:15; LA64-NEXT:    ld.bu $a0, $a0, 016; LA64-NEXT:    ret17  %a = load i8, ptr %p, align 118  br label %exit19exit:20  ret i8 %a21}22 23define zeroext i16 @test_zext_i16(ptr %p) nounwind {24; LA32-LABEL: test_zext_i16:25; LA32:       # %bb.0:26; LA32-NEXT:    ld.bu $a1, $a0, 127; LA32-NEXT:    ld.bu $a0, $a0, 028; LA32-NEXT:    slli.w $a1, $a1, 829; LA32-NEXT:    or $a0, $a1, $a030; LA32-NEXT:    ret31;32; LA64-LABEL: test_zext_i16:33; LA64:       # %bb.0:34; LA64-NEXT:    ld.hu $a0, $a0, 035; LA64-NEXT:    ret36  %a = load i16, ptr %p, align 137  br label %exit38exit:39  ret i16 %a40}41