brintos

brintos / llvm-project-archived public Read only

0
0
Text · 472 B · 517b5a4 Raw
18 lines · plain
1; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py2; RUN: llc < %s -mtriple=x86_64-- | FileCheck %s3 4; Do eliminate the zero-extension instruction and rely on5; x86-64's implicit zero-extension!6 7define i64 @foo(ptr %p) nounwind {8; CHECK-LABEL: foo:9; CHECK:       # %bb.0:10; CHECK-NEXT:    movl (%rdi), %eax11; CHECK-NEXT:    incl %eax12; CHECK-NEXT:    retq13  %t = load i32, ptr %p14  %n = add i32 %t, 115  %z = zext i32 %n to i6416  ret i64 %z17}18