xref: /llvm-project/bolt/test/X86/Inputs/linenumber.cpp (revision 1a2f83366b86433bb86f3b60fa19b3f096313a21)

f()1 int f() {
2   // This will be removed by BOLT but they make sure we have some extra space
3   // to insert branches and don't run out of space when rewriting the function.
4   asm("nop");
5   asm("nop");
6   asm("nop");
7   asm("nop");
8   asm("nop");
9   int x = 0xBEEF;
10   if (x & 0x32) {
11     x++;
12   } else {
13     --x;
14   }
15   return x;
16 }
17 
g()18 int g() {
19   return f() + 1;
20 }
21 
main()22 int main() {
23   int q = g() * f();
24   return 0;
25 }
26