1 ; RUN: llc -O2 -mtriple=i686-- < %s | FileCheck %s
3 define ptr @fooOptnone(ptr %p, ptr %q, ptr %z) #0 {
11 %t2 = getelementptr i32, ptr %y, i32 1
12 %t3 = getelementptr i32, ptr %t2, i32 %t1
16 ; 'optnone' should use fast-isel which will not produce 'lea'.
17 ; CHECK-LABEL: fooOptnone:
22 define ptr @fooNormal(ptr %p, ptr %q, ptr %z) #1 {
30 %t2 = getelementptr i32, ptr %y, i32 1
31 %t3 = getelementptr i32, ptr %t2, i32 %t1
35 ; Normal ISel will produce 'lea'.
36 ; CHECK-LABEL: fooNormal:
41 attributes #0 = { nounwind optnone noinline }
42 attributes #1 = { nounwind }