1 ; RUN: llc -O2 -mtriple=x86_64-- -stop-after=finalize-isel < %s | FileCheck %s
3 define i1 @fold_test(ptr %x, i64 %l) {
5 %0 = load i64, ptr %x, align 8
7 %tobool = icmp ne i64 %and, 0
10 ; Folding the load+and+icmp instructions into a TEST64mr instruction
11 ; should preserve memory operands.
12 ; CHECK: TEST64mr {{.*}} :: (load (s64) from {{%.*}})