1 ; Check the size of generated variable when no option is set 2 ; RUN: opt -S %s -O2 -o - | FileCheck -check-prefix=CHECK-LONG %s 3 ; CHECK-LONG: %{{[a-z]{4}[a-z]+}} 4 5 ; Then check we correctly cap the size of newly generated non-global values name 6 ; Force the size to be small so that the check works on release and debug build 7 ; RUN: opt -S %s -O2 -o - -non-global-value-max-name-size=0 | FileCheck -check-prefix=CHECK-SHORT %s 8 ; RUN: opt -S %s -O2 -o - -non-global-value-max-name-size=1 | FileCheck -check-prefix=CHECK-SHORT %s 9 ; CHECK-SHORT-NOT: %{{[a-z][a-z]+}} 10 11 define i32 @f(i32 %a, i32 %b) { 12 %c = add i32 %a, %b 13 %d = add i32 %c, %a 14 %e = add i32 %d, %b 15 ret i32 %e 16 } 17 18 19