27 lines · plain
1; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py UTC_ARGS: --version 62; RUN: llc < %s -mtriple=i686-- | FileCheck %s --check-prefixes=X863; RUN: llc < %s -mtriple=x86_64-- | FileCheck %s --check-prefixes=X644 5define i32 @PR165755(ptr %p0) {6; X86-LABEL: PR165755:7; X86: # %bb.0:8; X86-NEXT: movl {{[0-9]+}}(%esp), %ecx9; X86-NEXT: movl (%ecx), %eax10; X86-NEXT: movb $0, (%ecx)11; X86-NEXT: retl12;13; X64-LABEL: PR165755:14; X64: # %bb.0:15; X64-NEXT: movl (%rdi), %eax16; X64-NEXT: movb $0, (%rdi)17; X64-NEXT: retq18 %ld64 = load i64, ptr %p0, align 819 store i8 0, ptr %p0, align 120 %ld32 = load i32, ptr %p0, align 821 %mask = and i32 %ld32, 3222 %zext = zext i32 %mask to i6423 %srl = lshr i64 %ld64, %zext24 %res = trunc i64 %srl to i3225 ret i32 %res26}27