Issue 237840
Summary llubi reports undefined behavior for the valid printf format F
Labels new issue
Assignees
Reporter Roticv912
    A printf call using the valid C99 %F conversion with a double argument reports immediate undefined behavior.

### Program
```llvm
@fmt = constant [3 x i8] c"%F\00"
declare i32 @printf(ptr, ...)

define i32 @main() {
entry:
  %n = call i32 (ptr, ...) @printf(ptr @fmt, double 1.0)
  ret i32 0
}
```

### Output
```
Entering function: main
Stacktrace:
#0   %n = call i32 (ptr, ...) @printf(ptr @fmt, double 1.000000e+00) at @main repro.ll:6
Immediate UB detected: Unknown or unsupported format specifier 'F' in printf.
error: Execution of function 'main' failed.
```
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to