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 ; RUN: opt -S %s -O2 -o - -non-global-value-max-name-size=-1 | FileCheck -check-prefix=CHECK-LONG %s
4 ; CHECK-LONG: %{{[a-z]{4}[a-z]+}}
6 ; Then check we correctly cap the size of newly generated non-global values name
7 ; Force the size to be small so that the check works on release and debug build
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]+}}
11 define i32 @f(i32 %a, i32 %b) {