15 lines · plain
1; RUN: llc -O2 -mtriple=x86_64-- -stop-after=finalize-isel < %s | FileCheck %s2 3define i1 @fold_test(ptr %x, i64 %l) {4entry:5 %0 = load i64, ptr %x, align 86 %and = and i64 %0, %l7 %tobool = icmp ne i64 %and, 08 ret i1 %tobool9 10 ; Folding the load+and+icmp instructions into a TEST64mr instruction11 ; should preserve memory operands.12 ; CHECK: TEST64mr {{.*}} :: (load (s64) from {{%.*}})13}14 15