condition flags USE in AD instruct

Christian Thalinger Christian.Thalinger at Sun.COM
Tue Apr 14 10:35:36 PDT 2009


Hi!

Is there a way to USE condition flags in instruct effects, like:

instruct foo(rFlagsReg cr) {
  effect(USE cr)
...
}

ADLC complains about that with:

illegal USE of non-input: rFlagsReg cr

However I see something similar for minI_rReg in x86_64.ad where another
instruct, namely cmovI_reg_g, uses cr and the later is used in an expand
inside the former.  Is that a workaround/intentional/the only way to do
it?

-- Christian




More information about the hotspot-compiler-dev mailing list