search for: t5wksj

Displaying 2 results from an estimated 2 matches for "t5wksj".

2019 Jul 08
2
Problem with the LLVM v8.0 IR 'select' instruction
...rrect to me. > > >> But when I compile the sample on x86_64, arm7, and aarch64, I always >> get code that yields one. >> > > Can you provide a reproducer? > As far as I can tell the optimizer folds the code you provided above to > yield 0: https://godbolt.org/z/T5wkSJ > > -- > Mehdi > > > >> >> The idea is that if the program, @Start, returns false, one should be >> returned to the OS and vice versa. I guess I could use 'not' instead of >> 'select', but I don't understand the behavior of 'select&...
2019 Jul 07
2
Problem with the LLVM v8.0 IR 'select' instruction
Hi guys, I am doing a hobby compiler using LLVM. I have a rather peculiar problem with the 'select' instruction, as far as I can see. Given this code: ************************************************ ; Run-time Library Definitions %Exception = type { i8 } define private %Exception* @Start(i1* %$result) #0 { prologue: store i1 true, i1* %$result br label %epilogue epilogue: