GCC appears to accept the Intel retf syntax in AT&T mode but clang is stricter and requires use of lret.